<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: editor   toolbar.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>editor&nbsp; <span class="subtitle">2.9.0</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_editor.html" title="editor">editor</a>
                
                 &gt; toolbar.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
                        <div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * @module editor</span>
<span class="cm"> * @description &lt;p&gt;Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor&lt;/p&gt;</span>
<span class="cm"> * @namespace YAHOO.widget</span>
<span class="cm"> * @requires yahoo, dom, element, event, toolbarbutton</span>
<span class="cm"> * @optional container_core, dragdrop</span>
<span class="cm"> */</span>
<span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">Dom</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">,</span>
    <span class="nx">Event</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">,</span>
    <span class="nx">Lang</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">;</span>
    
    <span class="kd">var</span> <span class="nx">getButton</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">id</span><span class="p">;</span>
        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">id</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span>
        <span class="p">}</span>
        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isNumber</span><span class="p">(</span><span class="nx">id</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonByIndex</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span>
        <span class="p">}</span>
        <span class="k">if</span> <span class="p">((</span><span class="o">!</span><span class="p">(</span><span class="nx">button</span> <span class="k">instanceof</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButton</span><span class="p">))</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">button</span> <span class="k">instanceof</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButtonAdvanced</span><span class="p">)))</span> <span class="p">{</span>
            <span class="nx">button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span>
        <span class="p">}</span>
        <span class="k">if</span> <span class="p">((</span><span class="nx">button</span> <span class="k">instanceof</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButton</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">button</span> <span class="k">instanceof</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButtonAdvanced</span><span class="p">))</span> <span class="p">{</span>
            <span class="k">return</span> <span class="nx">button</span><span class="p">;</span>
        <span class="p">}</span>
        <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
    <span class="p">};</span>

    <span class="cm">/**</span>
<span class="cm">     * Provides a rich toolbar widget based on the button and menu widgets</span>
<span class="cm">     * @constructor</span>
<span class="cm">     * @class Toolbar</span>
<span class="cm">     * @extends YAHOO.util.Element</span>
<span class="cm">     * @param {String/HTMLElement} el The element to turn into a toolbar.</span>
<span class="cm">     * @param {Object} attrs Object liternal containing configuration parameters.</span>
<span class="cm">    */</span>
    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">attrs</span><span class="p">)</span> <span class="p">{</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Toolbar Initalizing&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nx">arguments</span><span class="p">.</span><span class="nx">length</span> <span class="o">+</span> <span class="s1">&#39; arguments passed to constructor&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
        
        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">arguments</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">el</span><span class="p">).</span><span class="nx">nodeType</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">attrs</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
        <span class="p">}</span>
        <span class="kd">var</span> <span class="nx">local_attrs</span> <span class="o">=</span> <span class="p">{};</span>
        <span class="k">if</span> <span class="p">(</span><span class="nx">attrs</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">Lang</span><span class="p">.</span><span class="nx">augmentObject</span><span class="p">(</span><span class="nx">local_attrs</span><span class="p">,</span> <span class="nx">attrs</span><span class="p">);</span> <span class="c1">//Break the config reference</span>
        <span class="p">}</span>
        

        <span class="kd">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="p">{</span>
            <span class="nx">element</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
            <span class="nx">attributes</span><span class="o">:</span> <span class="nx">local_attrs</span>
        <span class="p">};</span>
        
        
        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">el</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
        <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">el</span><span class="p">).</span><span class="nx">nodeType</span><span class="p">)</span> <span class="p">{</span>  
            <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
        <span class="p">}</span>
        

        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;No element defined, creating toolbar container&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
            <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;DIV&#39;</span><span class="p">);</span>
            <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">generateId</span><span class="p">();</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="nx">local_attrs</span><span class="p">.</span><span class="nx">container</span> <span class="o">&amp;&amp;</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">local_attrs</span><span class="p">.</span><span class="nx">container</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Container found in config appending to it (&#39;</span> <span class="o">+</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">local_attrs</span><span class="p">.</span><span class="nx">container</span><span class="p">).</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">local_attrs</span><span class="p">.</span><span class="nx">container</span><span class="p">).</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">);</span>
            <span class="p">}</span>
        <span class="p">}</span>
        

        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="p">((</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">el</span><span class="p">))</span> <span class="o">?</span> <span class="nx">el</span> <span class="o">:</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">generateId</span><span class="p">());</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;No element ID defined for toolbar container, creating..&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
        <span class="p">}</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Initing toolbar with id: &#39;</span> <span class="o">+</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">id</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
        
        <span class="kd">var</span> <span class="nx">fs</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;fieldset&#39;</span><span class="p">);</span>
        <span class="kd">var</span> <span class="nx">lg</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;legend&#39;</span><span class="p">);</span>
        <span class="nx">lg</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">;</span>
        <span class="nx">fs</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">lg</span><span class="p">);</span>
        
        <span class="kd">var</span> <span class="nx">cont</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;DIV&#39;</span><span class="p">);</span>
        <span class="nx">oConfig</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">cont</span> <span class="o">=</span> <span class="nx">cont</span><span class="p">;</span>
        <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">cont</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-subcont&#39;</span><span class="p">);</span>
        <span class="nx">fs</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">cont</span><span class="p">);</span>
        <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">fs</span><span class="p">);</span>

        <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span>

        
        <span class="nx">oConfig</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">element</span> <span class="o">=</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">;</span>
        <span class="nx">oConfig</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">id</span><span class="p">;</span>

        <span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span> <span class="o">=</span> <span class="p">[];</span>

        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">attributes</span><span class="p">);</span>
         
    <span class="p">};</span>

    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">,</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Element</span><span class="p">,</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property _configuredButtons</span>
<span class="cm">        * @type Array</span>
<span class="cm">        */</span>
        <span class="nx">_configuredButtons</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @method _addMenuClasses</span>
<span class="cm">        * @private</span>
<span class="cm">        * @description This method is called from Menu&#39;s renderEvent to add a few more classes to the menu items</span>
<span class="cm">        * @param {String} ev The event that fired.</span>
<span class="cm">        * @param {Array} na Array of event information.</span>
<span class="cm">        * @param {Object} o Button config object. </span>
<span class="cm">        */</span>
        <span class="nx">_addMenuClasses</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">na</span><span class="p">,</span> <span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-&#39;</span> <span class="o">+</span> <span class="nx">o</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-menu&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">_button</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-select&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-select-menu&#39;</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">items</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getItems</span><span class="p">();</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">items</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-&#39;</span> <span class="o">+</span> <span class="nx">o</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="p">((</span><span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">value</span><span class="p">)</span> <span class="o">?</span> <span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">value</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/ /g</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">:</span> <span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">_oText</span><span class="p">.</span><span class="nx">nodeValue</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/ /g</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()));</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-&#39;</span> <span class="o">+</span> <span class="nx">o</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="p">((</span><span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">value</span><span class="p">)</span> <span class="o">?</span> <span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">value</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/ /g</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">)</span> <span class="o">:</span> <span class="nx">items</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">_oText</span><span class="p">.</span><span class="nx">nodeValue</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/ /g</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">)));</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @property buttonType</span>
<span class="cm">        * @description The default button to use</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">buttonType</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButton</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property dd</span>
<span class="cm">        * @description The DragDrop instance associated with the Toolbar</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">dd</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property _colorData</span>
<span class="cm">        * @description Object reference containing colors hex and text values.</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_colorData</span><span class="o">:</span> <span class="p">{</span>
<span class="cm">/* {{{ _colorData */</span>
    <span class="s1">&#39;#111111&#39;</span><span class="o">:</span> <span class="s1">&#39;Obsidian&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#2D2D2D&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#434343&#39;</span><span class="o">:</span> <span class="s1">&#39;Shale&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#5B5B5B&#39;</span><span class="o">:</span> <span class="s1">&#39;Flint&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#737373&#39;</span><span class="o">:</span> <span class="s1">&#39;Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#8B8B8B&#39;</span><span class="o">:</span> <span class="s1">&#39;Concrete&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#A2A2A2&#39;</span><span class="o">:</span> <span class="s1">&#39;Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#B9B9B9&#39;</span><span class="o">:</span> <span class="s1">&#39;Titanium&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#000000&#39;</span><span class="o">:</span> <span class="s1">&#39;Black&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#D0D0D0&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#E6E6E6&#39;</span><span class="o">:</span> <span class="s1">&#39;Silver&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFFFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;White&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BFBF00&#39;</span><span class="o">:</span> <span class="s1">&#39;Pumpkin&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFFF00&#39;</span><span class="o">:</span> <span class="s1">&#39;Yellow&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFFF40&#39;</span><span class="o">:</span> <span class="s1">&#39;Banana&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFFF80&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Yellow&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFFFBF&#39;</span><span class="o">:</span> <span class="s1">&#39;Butter&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#525330&#39;</span><span class="o">:</span> <span class="s1">&#39;Raw Siena&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#898A49&#39;</span><span class="o">:</span> <span class="s1">&#39;Mildew&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#AEA945&#39;</span><span class="o">:</span> <span class="s1">&#39;Olive&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7F7F00&#39;</span><span class="o">:</span> <span class="s1">&#39;Paprika&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#C3BE71&#39;</span><span class="o">:</span> <span class="s1">&#39;Earth&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#E0DCAA&#39;</span><span class="o">:</span> <span class="s1">&#39;Khaki&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FCFAE1&#39;</span><span class="o">:</span> <span class="s1">&#39;Cream&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#60BF00&#39;</span><span class="o">:</span> <span class="s1">&#39;Cactus&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#80FF00&#39;</span><span class="o">:</span> <span class="s1">&#39;Chartreuse&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#A0FF40&#39;</span><span class="o">:</span> <span class="s1">&#39;Green&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#C0FF80&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Lime&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#DFFFBF&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Mint&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#3B5738&#39;</span><span class="o">:</span> <span class="s1">&#39;Green&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#668F5A&#39;</span><span class="o">:</span> <span class="s1">&#39;Lime Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7F9757&#39;</span><span class="o">:</span> <span class="s1">&#39;Yellow&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#407F00&#39;</span><span class="o">:</span> <span class="s1">&#39;Clover&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#8A9B55&#39;</span><span class="o">:</span> <span class="s1">&#39;Pistachio&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#B7C296&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Jade&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#E6EBD5&#39;</span><span class="o">:</span> <span class="s1">&#39;Breakwater&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#00BF00&#39;</span><span class="o">:</span> <span class="s1">&#39;Spring Frost&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#00FF80&#39;</span><span class="o">:</span> <span class="s1">&#39;Pastel Green&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#40FFA0&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Emerald&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#80FFC0&#39;</span><span class="o">:</span> <span class="s1">&#39;Sea Foam&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BFFFDF&#39;</span><span class="o">:</span> <span class="s1">&#39;Sea Mist&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#033D21&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Forrest&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#438059&#39;</span><span class="o">:</span> <span class="s1">&#39;Moss&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7FA37C&#39;</span><span class="o">:</span> <span class="s1">&#39;Medium Green&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#007F40&#39;</span><span class="o">:</span> <span class="s1">&#39;Pine&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#8DAE94&#39;</span><span class="o">:</span> <span class="s1">&#39;Yellow Gray Green&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#ACC6B5&#39;</span><span class="o">:</span> <span class="s1">&#39;Aqua Lung&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#DDEBE2&#39;</span><span class="o">:</span> <span class="s1">&#39;Sea Vapor&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#00BFBF&#39;</span><span class="o">:</span> <span class="s1">&#39;Fog&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#00FFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Cyan&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#40FFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Turquoise Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#80FFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Aqua&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BFFFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Cyan&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#033D3D&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Teal&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#347D7E&#39;</span><span class="o">:</span> <span class="s1">&#39;Gray Turquoise&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#609A9F&#39;</span><span class="o">:</span> <span class="s1">&#39;Green Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#007F7F&#39;</span><span class="o">:</span> <span class="s1">&#39;Seaweed&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#96BDC4&#39;</span><span class="o">:</span> <span class="s1">&#39;Green Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#B5D1D7&#39;</span><span class="o">:</span> <span class="s1">&#39;Soapstone&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#E2F1F4&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Turquoise&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#0060BF&#39;</span><span class="o">:</span> <span class="s1">&#39;Summer Sky&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#0080FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Sky Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#40A0FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Electric Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#80C0FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Azure&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BFDFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Ice Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#1B2C48&#39;</span><span class="o">:</span> <span class="s1">&#39;Navy&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#385376&#39;</span><span class="o">:</span> <span class="s1">&#39;Biscay&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#57708F&#39;</span><span class="o">:</span> <span class="s1">&#39;Dusty Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#00407F&#39;</span><span class="o">:</span> <span class="s1">&#39;Sea Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7792AC&#39;</span><span class="o">:</span> <span class="s1">&#39;Sky Blue Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#A8BED1&#39;</span><span class="o">:</span> <span class="s1">&#39;Morning Sky&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#DEEBF6&#39;</span><span class="o">:</span> <span class="s1">&#39;Vapor&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#0000BF&#39;</span><span class="o">:</span> <span class="s1">&#39;Deep Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#0000FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#4040FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Cerulean Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#8080FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Evening Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BFBFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#212143&#39;</span><span class="o">:</span> <span class="s1">&#39;Deep Indigo&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#373E68&#39;</span><span class="o">:</span> <span class="s1">&#39;Sea Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#444F75&#39;</span><span class="o">:</span> <span class="s1">&#39;Night Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#00007F&#39;</span><span class="o">:</span> <span class="s1">&#39;Indigo Blue&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#585E82&#39;</span><span class="o">:</span> <span class="s1">&#39;Dockside&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#8687A4&#39;</span><span class="o">:</span> <span class="s1">&#39;Blue Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#D2D1E1&#39;</span><span class="o">:</span> <span class="s1">&#39;Light Blue Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#6000BF&#39;</span><span class="o">:</span> <span class="s1">&#39;Neon Violet&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#8000FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Blue Violet&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#A040FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Violet Purple&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#C080FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Violet Dusk&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#DFBFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Lavender&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#302449&#39;</span><span class="o">:</span> <span class="s1">&#39;Cool Shale&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#54466F&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Indigo&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#655A7F&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Violet&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#40007F&#39;</span><span class="o">:</span> <span class="s1">&#39;Violet&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#726284&#39;</span><span class="o">:</span> <span class="s1">&#39;Smoky Violet&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#9E8FA9&#39;</span><span class="o">:</span> <span class="s1">&#39;Slate Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#DCD1DF&#39;</span><span class="o">:</span> <span class="s1">&#39;Violet White&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BF00BF&#39;</span><span class="o">:</span> <span class="s1">&#39;Royal Violet&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF00FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Fuchsia&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF40FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Magenta&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF80FF&#39;</span><span class="o">:</span> <span class="s1">&#39;Orchid&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFBFFF&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Magenta&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#4A234A&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Purple&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#794A72&#39;</span><span class="o">:</span> <span class="s1">&#39;Medium Purple&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#936386&#39;</span><span class="o">:</span> <span class="s1">&#39;Cool Granite&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7F007F&#39;</span><span class="o">:</span> <span class="s1">&#39;Purple&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#9D7292&#39;</span><span class="o">:</span> <span class="s1">&#39;Purple Moon&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#C0A0B6&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Purple&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#ECDAE5&#39;</span><span class="o">:</span> <span class="s1">&#39;Pink Cloud&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BF005F&#39;</span><span class="o">:</span> <span class="s1">&#39;Hot Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF007F&#39;</span><span class="o">:</span> <span class="s1">&#39;Deep Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF409F&#39;</span><span class="o">:</span> <span class="s1">&#39;Grape&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF80BF&#39;</span><span class="o">:</span> <span class="s1">&#39;Electric Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFBFDF&#39;</span><span class="o">:</span> <span class="s1">&#39;Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#451528&#39;</span><span class="o">:</span> <span class="s1">&#39;Purple Red&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#823857&#39;</span><span class="o">:</span> <span class="s1">&#39;Purple Dino&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#A94A76&#39;</span><span class="o">:</span> <span class="s1">&#39;Purple Gray&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7F003F&#39;</span><span class="o">:</span> <span class="s1">&#39;Rose&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BC6F95&#39;</span><span class="o">:</span> <span class="s1">&#39;Antique Mauve&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#D8A5BB&#39;</span><span class="o">:</span> <span class="s1">&#39;Cool Marble&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#F7DDE9&#39;</span><span class="o">:</span> <span class="s1">&#39;Pink Granite&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#C00000&#39;</span><span class="o">:</span> <span class="s1">&#39;Apple&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF0000&#39;</span><span class="o">:</span> <span class="s1">&#39;Fire Truck&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF4040&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Red&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF8080&#39;</span><span class="o">:</span> <span class="s1">&#39;Salmon&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFC0C0&#39;</span><span class="o">:</span> <span class="s1">&#39;Warm Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#441415&#39;</span><span class="o">:</span> <span class="s1">&#39;Sepia&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#82393C&#39;</span><span class="o">:</span> <span class="s1">&#39;Rust&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#AA4D4E&#39;</span><span class="o">:</span> <span class="s1">&#39;Brick&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#800000&#39;</span><span class="o">:</span> <span class="s1">&#39;Brick Red&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BC6E6E&#39;</span><span class="o">:</span> <span class="s1">&#39;Mauve&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#D8A3A4&#39;</span><span class="o">:</span> <span class="s1">&#39;Shrimp Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#F8DDDD&#39;</span><span class="o">:</span> <span class="s1">&#39;Shell Pink&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#BF5F00&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Orange&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF7F00&#39;</span><span class="o">:</span> <span class="s1">&#39;Orange&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FF9F40&#39;</span><span class="o">:</span> <span class="s1">&#39;Grapefruit&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFBF80&#39;</span><span class="o">:</span> <span class="s1">&#39;Canteloupe&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FFDFBF&#39;</span><span class="o">:</span> <span class="s1">&#39;Wax&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#482C1B&#39;</span><span class="o">:</span> <span class="s1">&#39;Dark Brick&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#855A40&#39;</span><span class="o">:</span> <span class="s1">&#39;Dirt&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#B27C51&#39;</span><span class="o">:</span> <span class="s1">&#39;Tan&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#7F3F00&#39;</span><span class="o">:</span> <span class="s1">&#39;Nutmeg&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#C49B71&#39;</span><span class="o">:</span> <span class="s1">&#39;Mustard&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#E1C4A8&#39;</span><span class="o">:</span> <span class="s1">&#39;Pale Tan&#39;</span><span class="p">,</span>
    <span class="s1">&#39;#FDEEE0&#39;</span><span class="o">:</span> <span class="s1">&#39;Marble&#39;</span>
<span class="cm">/* }}} */</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @property _colorPicker</span>
<span class="cm">        * @description The HTML Element containing the colorPicker</span>
<span class="cm">        * @type HTMLElement</span>
<span class="cm">        */</span>
        <span class="nx">_colorPicker</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property STR_COLLAPSE</span>
<span class="cm">        * @description String for Toolbar Collapse Button</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_COLLAPSE</span><span class="o">:</span> <span class="s1">&#39;Collapse Toolbar&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property STR_EXPAND</span>
<span class="cm">        * @description String for Toolbar Collapse Button - Expand</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_EXPAND</span><span class="o">:</span> <span class="s1">&#39;Expand Toolbar&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property STR_SPIN_LABEL</span>
<span class="cm">        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_SPIN_LABEL</span><span class="o">:</span> <span class="s1">&#39;Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property STR_SPIN_UP</span>
<span class="cm">        * @description String for spinbutton up</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_SPIN_UP</span><span class="o">:</span> <span class="s1">&#39;Click to increase the value of this input&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property STR_SPIN_DOWN</span>
<span class="cm">        * @description String for spinbutton down</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_SPIN_DOWN</span><span class="o">:</span> <span class="s1">&#39;Click to decrease the value of this input&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property _titlebar</span>
<span class="cm">        * @description Object reference to the titlebar</span>
<span class="cm">        * @type HTMLElement</span>
<span class="cm">        */</span>
        <span class="nx">_titlebar</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @property browser</span>
<span class="cm">        * @description Standard browser detection</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">browser</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">env</span><span class="p">.</span><span class="nx">ua</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property _buttonList</span>
<span class="cm">        * @description Internal property list of current buttons in the toolbar</span>
<span class="cm">        * @type Array</span>
<span class="cm">        */</span>
        <span class="nx">_buttonList</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property _buttonGroupList</span>
<span class="cm">        * @description Internal property list of current button groups in the toolbar</span>
<span class="cm">        * @type Array</span>
<span class="cm">        */</span>
        <span class="nx">_buttonGroupList</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property _sep</span>
<span class="cm">        * @description Internal reference to the separator HTML Element for cloning</span>
<span class="cm">        * @type HTMLElement</span>
<span class="cm">        */</span>
        <span class="nx">_sep</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property _sepCount</span>
<span class="cm">        * @description Internal refernce for counting separators, so we can give them a useful class name for styling</span>
<span class="cm">        * @type Number</span>
<span class="cm">        */</span>
        <span class="nx">_sepCount</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property draghandle</span>
<span class="cm">        * @type HTMLElement</span>
<span class="cm">        */</span>
        <span class="nx">_dragHandle</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property _toolbarConfigs</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_toolbarConfigs</span><span class="o">:</span> <span class="p">{</span>
            <span class="nx">renderer</span><span class="o">:</span> <span class="kc">true</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_CONTAINER</span>
<span class="cm">        * @description Default CSS class to apply to the toolbar container element</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_CONTAINER</span><span class="o">:</span> <span class="s1">&#39;yui-toolbar-container&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_DRAGHANDLE</span>
<span class="cm">        * @description Default CSS class to apply to the toolbar&#39;s drag handle element</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_DRAGHANDLE</span><span class="o">:</span> <span class="s1">&#39;yui-toolbar-draghandle&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_SEPARATOR</span>
<span class="cm">        * @description Default CSS class to apply to all separators in the toolbar</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_SEPARATOR</span><span class="o">:</span> <span class="s1">&#39;yui-toolbar-separator&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_DISABLED</span>
<span class="cm">        * @description Default CSS class to apply when the toolbar is disabled</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_DISABLED</span><span class="o">:</span> <span class="s1">&#39;yui-toolbar-disabled&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_PREFIX</span>
<span class="cm">        * @description Default prefix for dynamically created class names</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_PREFIX</span><span class="o">:</span> <span class="s1">&#39;yui-toolbar&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @method init</span>
<span class="cm">        * @description The Toolbar class&#39;s initialization method</span>
<span class="cm">        */</span>
        <span class="nx">init</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">p_oElement</span><span class="p">,</span> <span class="nx">p_oAttributes</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">init</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">p_oElement</span><span class="p">,</span> <span class="nx">p_oAttributes</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method initAttributes</span>
<span class="cm">        * @description Initializes all of the configuration attributes used to create </span>
<span class="cm">        * the toolbar.</span>
<span class="cm">        * @param {Object} attr Object literal specifying a set of </span>
<span class="cm">        * configuration attributes used to create the toolbar.</span>
<span class="cm">        */</span>
        <span class="nx">initAttributes</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">attr</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">initAttributes</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">attr</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_CONTAINER</span><span class="p">);</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute buttonType</span>
<span class="cm">            * @description The buttonType to use (advanced or basic)</span>
<span class="cm">            * @type String</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;buttonType&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">||</span> <span class="s1">&#39;basic&#39;</span><span class="p">,</span>
                <span class="nx">writeOnce</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">type</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">switch</span> <span class="p">(</span><span class="nx">type</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">case</span> <span class="s1">&#39;advanced&#39;</span><span class="o">:</span>
                        <span class="k">case</span> <span class="s1">&#39;basic&#39;</span><span class="o">:</span>
                            <span class="k">return</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                <span class="p">},</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">type</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;advanced&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButtonAdvanced</span><span class="p">;</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Can not find YAHOO.widget.Button&#39;</span><span class="p">,</span> <span class="s1">&#39;error&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButton</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">ToolbarButton</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>


            <span class="cm">/**</span>
<span class="cm">            * @attribute buttons</span>
<span class="cm">            * @description Object specifying the buttons to include in the toolbar</span>
<span class="cm">            * Example:</span>
<span class="cm">            * &lt;code&gt;&lt;pre&gt;</span>
<span class="cm">            * {</span>
<span class="cm">            *   { id: &#39;b3&#39;, type: &#39;button&#39;, label: &#39;Underline&#39;, value: &#39;underline&#39; },</span>
<span class="cm">            *   { type: &#39;separator&#39; },</span>
<span class="cm">            *   { id: &#39;b4&#39;, type: &#39;menu&#39;, label: &#39;Align&#39;, value: &#39;align&#39;,</span>
<span class="cm">            *       menu: [</span>
<span class="cm">            *           { text: &quot;Left&quot;, value: &#39;alignleft&#39; },</span>
<span class="cm">            *           { text: &quot;Center&quot;, value: &#39;aligncenter&#39; },</span>
<span class="cm">            *           { text: &quot;Right&quot;, value: &#39;alignright&#39; }</span>
<span class="cm">            *       ]</span>
<span class="cm">            *   }</span>
<span class="cm">            * }</span>
<span class="cm">            * &lt;/pre&gt;&lt;/code&gt;</span>
<span class="cm">            * @type Array</span>
<span class="cm">            */</span>
            
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;buttons&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="p">[],</span>
                <span class="nx">writeOnce</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">data</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">i</span><span class="p">,</span> <span class="nx">button</span><span class="p">,</span> <span class="nx">buttons</span><span class="p">,</span> <span class="nx">len</span><span class="p">,</span> <span class="nx">b</span><span class="p">;</span>
                    <span class="k">for</span> <span class="p">(</span><span class="nx">i</span> <span class="k">in</span> <span class="nx">data</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="nx">data</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">data</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;separator&#39;</span><span class="p">)</span> <span class="p">{</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">addSeparator</span><span class="p">();</span>
                            <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">data</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">group</span> <span class="o">!==</span> <span class="kc">undefined</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">buttons</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">addButtonGroup</span><span class="p">(</span><span class="nx">data</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">buttons</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="nx">len</span> <span class="o">=</span> <span class="nx">buttons</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
                                    <span class="k">for</span><span class="p">(</span><span class="nx">b</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">b</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">b</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                                        <span class="k">if</span> <span class="p">(</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">b</span><span class="p">])</span> <span class="p">{</span>
                                            <span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="nx">buttons</span><span class="p">[</span><span class="nx">b</span><span class="p">].</span><span class="nx">id</span><span class="p">;</span>
                                        <span class="p">}</span>
                                    <span class="p">}</span>
                                <span class="p">}</span>
                                
                            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                <span class="nx">button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">addButton</span><span class="p">(</span><span class="nx">data</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="nx">button</span><span class="p">.</span><span class="nx">id</span><span class="p">;</span>
                                <span class="p">}</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute disabled</span>
<span class="cm">            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.</span>
<span class="cm">            * @default false</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">disabled</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">)</span> <span class="o">===</span> <span class="nx">disabled</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">disabled</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_DISABLED</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;draggable&#39;</span><span class="p">,</span> <span class="kc">false</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">disableAllButtons</span><span class="p">();</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_DISABLED</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">draggable</span><span class="p">.</span><span class="nx">_initialConfig</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                            <span class="c1">//Draggable by default, set it back</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;draggable&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">resetAllButtons</span><span class="p">();</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @config cont</span>
<span class="cm">            * @description The container for the toolbar.</span>
<span class="cm">            * @type HTMLElement</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">cont</span><span class="p">,</span>
                <span class="nx">readOnly</span><span class="o">:</span> <span class="kc">true</span>
            <span class="p">});</span>


            <span class="cm">/**</span>
<span class="cm">            * @attribute grouplabels</span>
<span class="cm">            * @description Boolean indicating if the toolbar should show the group label&#39;s text string.</span>
<span class="cm">            * @default true</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;grouplabels&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="p">((</span><span class="nx">attr</span><span class="p">.</span><span class="nx">grouplabels</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="o">?</span> <span class="kc">false</span> <span class="o">:</span> <span class="kc">true</span><span class="p">),</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">grouplabels</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">grouplabels</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">),</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-nogrouplabels&#39;</span><span class="p">));</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">),</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-nogrouplabels&#39;</span><span class="p">));</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>
            <span class="cm">/**</span>
<span class="cm">            * @attribute titlebar</span>
<span class="cm">            * @description Boolean indicating if the toolbar should have a titlebar. If</span>
<span class="cm">            * passed a string, it will use that as the titlebar text</span>
<span class="cm">            * @default false</span>
<span class="cm">            * @type Boolean or String</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;titlebar&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">titlebar</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">titlebar</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;DIV&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
                        <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">,</span> <span class="s1">&#39;focus&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_handleFocus</span><span class="p">();</span>
                        <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-titlebar&#39;</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">titlebar</span><span class="p">))</span> <span class="p">{</span>
                            <span class="kd">var</span> <span class="nx">h2</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;h2&#39;</span><span class="p">);</span>
                            <span class="nx">h2</span><span class="p">.</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
                            <span class="nx">h2</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&lt;a href=&quot;#&quot; tabIndex=&quot;0&quot;&gt;&#39;</span> <span class="o">+</span> <span class="nx">titlebar</span> <span class="o">+</span> <span class="s1">&#39;&lt;/a&gt;&#39;</span><span class="p">;</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">h2</span><span class="p">);</span>
                            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">h2</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                            <span class="p">});</span>
                            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">([</span><span class="nx">h2</span><span class="p">,</span> <span class="nx">h2</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">],</span> <span class="s1">&#39;focus&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">_handleFocus</span><span class="p">();</span>
                            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;firstChild&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">insertBefore</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;firstChild&#39;</span><span class="p">));</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;collapse&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;collapse&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>


            <span class="cm">/**</span>
<span class="cm">            * @attribute collapse</span>
<span class="cm">            * @description Boolean indicating if the the titlebar should have a collapse button.</span>
<span class="cm">            * The collapse button will not remove the toolbar, it will minimize it to the titlebar</span>
<span class="cm">            * @default false</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;collapse&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">collapse</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">)</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">collapseEl</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                        <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getElementsByClassName</span><span class="p">(</span><span class="s1">&#39;collapse&#39;</span><span class="p">,</span> <span class="s1">&#39;span&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">collapse</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">length</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                                <span class="c1">//There is already a collapse button</span>
                                <span class="k">return</span> <span class="kc">true</span><span class="p">;</span>
                            <span class="p">}</span>
                            <span class="nx">collapseEl</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;SPAN&#39;</span><span class="p">);</span>
                            <span class="nx">collapseEl</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;X&#39;</span><span class="p">;</span>
                            <span class="nx">collapseEl</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_COLLAPSE</span><span class="p">;</span>

                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">collapseEl</span><span class="p">,</span> <span class="s1">&#39;collapse&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">collapseEl</span><span class="p">);</span>
                            <span class="nx">Event</span><span class="p">.</span><span class="nx">addListener</span><span class="p">(</span><span class="nx">collapseEl</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-container-collapsed&#39;</span><span class="p">))</span> <span class="p">{</span>
                                    <span class="k">this</span><span class="p">.</span><span class="nx">collapse</span><span class="p">(</span><span class="kc">false</span><span class="p">);</span> <span class="c1">//Expand Toolbar</span>
                                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                    <span class="k">this</span><span class="p">.</span><span class="nx">collapse</span><span class="p">();</span> <span class="c1">//Collapse Toolbar</span>
                                <span class="p">}</span>
                            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">collapseEl</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getElementsByClassName</span><span class="p">(</span><span class="s1">&#39;collapse&#39;</span><span class="p">,</span> <span class="s1">&#39;span&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">collapseEl</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="p">{</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-container-collapsed&#39;</span><span class="p">))</span> <span class="p">{</span>
                                    <span class="c1">//We are closed, reopen the titlebar..</span>
                                    <span class="k">this</span><span class="p">.</span><span class="nx">collapse</span><span class="p">(</span><span class="kc">false</span><span class="p">);</span> <span class="c1">//Expand Toolbar</span>
                                <span class="p">}</span>
                                <span class="nx">collapseEl</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">collapseEl</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute draggable</span>
<span class="cm">            * @description Boolean indicating if the toolbar should be draggable.  </span>
<span class="cm">            * @default false</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;draggable&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="p">(</span><span class="nx">attr</span><span class="p">.</span><span class="nx">draggable</span> <span class="o">||</span> <span class="kc">false</span><span class="p">),</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">draggable</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">draggable</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;titlebar&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Dragging enabled&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;SPAN&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;|&#39;</span><span class="p">;</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="s1">&#39;Click to drag the toolbar&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_draghandle&#39;</span><span class="p">;</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_DRAGHANDLE</span><span class="p">);</span>
                            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">hasChildNodes</span><span class="p">())</span> <span class="p">{</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">insertBefore</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">firstChild</span><span class="p">);</span>
                            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">);</span>
                            <span class="p">}</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DD</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">));</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">setHandleElId</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">.</span><span class="nx">id</span><span class="p">);</span>
                            
                        <span class="p">}</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Dragging disabled&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dragHandle</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">draggable</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DD</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">));</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">setHandleElId</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">,</span> <span class="s1">&#39;draggable&#39;</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">,</span> <span class="s1">&#39;draggable&#39;</span><span class="p">);</span>
                            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">unreg</span><span class="p">();</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">},</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">ret</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DD</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">ret</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">return</span> <span class="nx">ret</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">});</span>

        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method addButtonGroup</span>
<span class="cm">        * @description Add a new button group to the toolbar. (uses addButton)</span>
<span class="cm">        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)</span>
<span class="cm">        */</span>
        <span class="nx">addButtonGroup</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">oGroup</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;addButtonGroup&#39;</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">];</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-grouped&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-grouped&#39;</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">div</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;DIV&#39;</span><span class="p">);</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">div</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-group&#39;</span><span class="p">);</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">div</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-group-&#39;</span> <span class="o">+</span> <span class="nx">oGroup</span><span class="p">.</span><span class="nx">group</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">oGroup</span><span class="p">.</span><span class="nx">label</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">label</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;h3&#39;</span><span class="p">);</span>
                <span class="nx">label</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">oGroup</span><span class="p">.</span><span class="nx">label</span><span class="p">;</span>
                <span class="nx">div</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">label</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;grouplabels&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">),</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span><span class="p">,</span> <span class="s1">&#39;-nogrouplabels&#39;</span><span class="p">);</span>
            <span class="p">}</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">div</span><span class="p">);</span>

            <span class="c1">//For accessibility, let&#39;s put all of the group buttons in an Unordered List</span>
            <span class="kd">var</span> <span class="nx">ul</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;ul&#39;</span><span class="p">);</span>
            <span class="nx">div</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">ul</span><span class="p">);</span>

            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonGroupList</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_buttonGroupList</span> <span class="o">=</span> <span class="p">{};</span>
            <span class="p">}</span>
            
            <span class="k">this</span><span class="p">.</span><span class="nx">_buttonGroupList</span><span class="p">[</span><span class="nx">oGroup</span><span class="p">.</span><span class="nx">group</span><span class="p">]</span> <span class="o">=</span> <span class="nx">ul</span><span class="p">;</span>

            <span class="c1">//An array of the button ids added to this group</span>
            <span class="c1">//This is used for destruction later...</span>
            <span class="kd">var</span> <span class="nx">addedButtons</span> <span class="o">=</span> <span class="p">[],</span>
                <span class="nx">button</span><span class="p">;</span>
            

            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">oGroup</span><span class="p">.</span><span class="nx">buttons</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">li</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;li&#39;</span><span class="p">);</span>
                <span class="nx">li</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-groupitem&#39;</span><span class="p">;</span>
                <span class="nx">ul</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">li</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">((</span><span class="nx">oGroup</span><span class="p">.</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">type</span> <span class="o">!==</span> <span class="kc">undefined</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">oGroup</span><span class="p">.</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;separator&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">addSeparator</span><span class="p">(</span><span class="nx">li</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">oGroup</span><span class="p">.</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">container</span> <span class="o">=</span> <span class="nx">li</span><span class="p">;</span>
                    <span class="nx">button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">addButton</span><span class="p">(</span><span class="nx">oGroup</span><span class="p">.</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">addedButtons</span><span class="p">[</span><span class="nx">addedButtons</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span>  <span class="o">=</span> <span class="nx">button</span><span class="p">.</span><span class="nx">id</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">addedButtons</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method addButtonToGroup</span>
<span class="cm">        * @description Add a new button to a toolbar group. Buttons supported:</span>
<span class="cm">        *   push, split, menu, select, color, spin</span>
<span class="cm">        * @param {Object} oButton Object literal reference to the Button&#39;s Config</span>
<span class="cm">        * @param {String} group The Group identifier passed into the initial config</span>
<span class="cm">        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.</span>
<span class="cm">        */</span>
        <span class="nx">addButtonToGroup</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">oButton</span><span class="p">,</span> <span class="nx">group</span><span class="p">,</span> <span class="nx">after</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">groupCont</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonGroupList</span><span class="p">[</span><span class="nx">group</span><span class="p">],</span>
                <span class="nx">li</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;li&#39;</span><span class="p">);</span>

            <span class="nx">li</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-groupitem&#39;</span><span class="p">;</span>
            <span class="nx">oButton</span><span class="p">.</span><span class="nx">container</span> <span class="o">=</span> <span class="nx">li</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">addButton</span><span class="p">(</span><span class="nx">oButton</span><span class="p">,</span> <span class="nx">after</span><span class="p">);</span>
            <span class="nx">groupCont</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">li</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method addButton</span>
<span class="cm">        * @description Add a new button to the toolbar. Buttons supported:</span>
<span class="cm">        *   push, split, menu, select, color, spin</span>
<span class="cm">        * @param {Object} oButton Object literal reference to the Button&#39;s Config</span>
<span class="cm">        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.</span>
<span class="cm">        */</span>
        <span class="nx">addButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">oButton</span><span class="p">,</span> <span class="nx">after</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;addButton&#39;</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">];</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span> <span class="o">=</span> <span class="p">[];</span>
            <span class="p">}</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Adding button of type: &#39;</span> <span class="o">+</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">container</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">oButton</span><span class="p">.</span><span class="nx">container</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">);</span>
            <span class="p">}</span>

            <span class="k">if</span> <span class="p">((</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;menu&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;split&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;select&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                            <span class="kd">var</span> <span class="nx">funcObject</span> <span class="o">=</span> <span class="p">{</span>
                                <span class="nx">fn</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">x</span><span class="p">,</span> <span class="nx">oMenu</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menucmd</span><span class="p">)</span> <span class="p">{</span>
                                        <span class="nx">oButton</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                                    <span class="p">}</span>
                                    <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="p">((</span><span class="nx">oMenu</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="o">?</span> <span class="nx">oMenu</span><span class="p">.</span><span class="nx">value</span> <span class="o">:</span> <span class="nx">oMenu</span><span class="p">.</span><span class="nx">_oText</span><span class="p">.</span><span class="nx">nodeValue</span><span class="p">);</span>
                                <span class="p">},</span>
                                <span class="nx">scope</span><span class="o">:</span> <span class="k">this</span>
                            <span class="p">};</span>
                            <span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">onclick</span> <span class="o">=</span> <span class="nx">funcObject</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">_oButton</span> <span class="o">=</span> <span class="p">{},</span> <span class="nx">skip</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">o</span> <span class="k">in</span> <span class="nx">oButton</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="nx">oButton</span><span class="p">,</span> <span class="nx">o</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_toolbarConfigs</span><span class="p">[</span><span class="nx">o</span><span class="p">])</span> <span class="p">{</span>
                        <span class="nx">_oButton</span><span class="p">[</span><span class="nx">o</span><span class="p">]</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">[</span><span class="nx">o</span><span class="p">];</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;select&#39;</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">_oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s1">&#39;menu&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;spin&#39;</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">_oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s1">&#39;push&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;color&#39;</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">_oButton</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_makeColorButton</span><span class="p">(</span><span class="nx">_oButton</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">skip</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">((</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span> <span class="k">instanceof</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">showEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_button</span> <span class="o">=</span> <span class="nx">_oButton</span><span class="p">;</span>
                    <span class="p">});</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">m</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">m</span> <span class="o">&lt;</span> <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">m</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">text</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">_oButton</span><span class="p">.</span><span class="nx">focusmenu</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">skip</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">oButton</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="c1">//Add to .get(&#39;buttons&#39;) manually</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">buttons</span><span class="p">.</span><span class="nx">value</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">buttons</span><span class="p">.</span><span class="nx">value</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">;</span>
                
                <span class="kd">var</span> <span class="nx">tmp</span> <span class="o">=</span> <span class="k">new</span> <span class="k">this</span><span class="p">.</span><span class="nx">buttonType</span><span class="p">(</span><span class="nx">_oButton</span><span class="p">);</span>
                <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
                <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;role&#39;</span><span class="p">,</span> <span class="s1">&#39;button&#39;</span><span class="p">);</span>
                <span class="nx">tmp</span><span class="p">.</span><span class="nx">_selected</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="c1">//Toolbar is disabled, disable the new button too!</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">oButton</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Button created (&#39;</span> <span class="o">+</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                
                <span class="k">if</span> <span class="p">(</span><span class="nx">after</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">nextSib</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">after</span><span class="p">.</span><span class="nx">get</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">nextSib</span> <span class="o">=</span> <span class="nx">after</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">nextSibling</span><span class="p">;</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">after</span><span class="p">.</span><span class="nx">nextSibling</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">nextSib</span> <span class="o">=</span> <span class="nx">after</span><span class="p">.</span><span class="nx">nextSibling</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">nextSib</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">nextSib</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">insertBefore</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">nextSib</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="nx">tmp</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">));</span>

                <span class="kd">var</span> <span class="nx">icon</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
                <span class="nx">icon</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-icon&#39;</span><span class="p">;</span>
                <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">insertBefore</span><span class="p">(</span><span class="nx">icon</span><span class="p">,</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;firstChild&#39;</span><span class="p">));</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;button&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;unselectable&#39;</span><span class="p">,</span> <span class="s1">&#39;on&#39;</span><span class="p">);</span>
                    <span class="c1">//Replace the Button HTML Element with an a href if it exists</span>
                    <span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">);</span>
                    <span class="nx">a</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span>
                    <span class="nx">a</span><span class="p">.</span><span class="nx">href</span> <span class="o">=</span> <span class="s1">&#39;#&#39;</span><span class="p">;</span>
                    <span class="nx">a</span><span class="p">.</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                    <span class="p">});</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span><span class="p">);</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span> <span class="o">=</span> <span class="nx">a</span><span class="p">;</span>
                <span class="p">}</span>

                <span class="k">if</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;select&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;select&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">icon</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">icon</span><span class="p">);</span>
                        <span class="kd">var</span> <span class="nx">iel</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">_button</span><span class="p">,</span>
                            <span class="nx">parEl</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">);</span>
                        <span class="nx">parEl</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">iel</span><span class="p">,</span> <span class="nx">parEl</span><span class="p">);</span>
                        <span class="c1">//The &#39;element&#39; value is currently the orphaned element</span>
                        <span class="c1">//In order for &quot;destroy&quot; to execute we need to get(&#39;element&#39;) to reference the correct node.</span>
                        <span class="c1">//I&#39;m not sure if there is a direct approach to setting this value.</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">iel</span><span class="p">;</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="c1">//Don&#39;t put a class on it if it&#39;s a real select element</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-select&#39;</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;spin&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">range</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">oButton</span><span class="p">.</span><span class="nx">range</span> <span class="o">=</span> <span class="p">[</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">100</span> <span class="p">];</span>
                    <span class="p">}</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_makeSpinButton</span><span class="p">(</span><span class="nx">tmp</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">));</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">!=</span> <span class="s1">&#39;spin&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">((</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span> <span class="k">instanceof</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">))</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">showPicker</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                            <span class="kd">var</span> <span class="nx">exec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">9</span><span class="p">))</span> <span class="p">{</span>
                                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                            <span class="p">}</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">exec</span><span class="p">)</span> <span class="p">{</span>
                                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">_button</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                                <span class="p">}</span>
                                <span class="kd">var</span> <span class="nx">menuEL</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">element</span><span class="p">;</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="nx">menuEL</span><span class="p">,</span> <span class="s1">&#39;visibility&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;hidden&#39;</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">show</span><span class="p">();</span>
                                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">hide</span><span class="p">();</span>
                                <span class="p">}</span>
                            <span class="p">}</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                        <span class="p">};</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mousedown&#39;</span><span class="p">,</span> <span class="nx">showPicker</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">,</span> <span class="k">this</span><span class="p">);</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;keydown&#39;</span><span class="p">,</span> <span class="nx">showPicker</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">,</span> <span class="k">this</span><span class="p">);</span>
                        
                    <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">((</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">!=</span> <span class="s1">&#39;menu&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">!=</span> <span class="s1">&#39;select&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;keypress&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonClick</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">,</span> <span class="k">this</span><span class="p">);</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mousedown&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_buttonClick</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">);</span>
                        <span class="p">},</span> <span class="nx">oButton</span><span class="p">,</span> <span class="k">this</span><span class="p">);</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                        <span class="p">});</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="c1">//Stop the mousedown event so we can trap the selection in the editor!</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mousedown&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                            <span class="c1">//YAHOO.util.Event.stopEvent(ev);</span>
                        <span class="p">});</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                            <span class="c1">//YAHOO.util.Event.stopEvent(ev);</span>
                        <span class="p">});</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;change&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">ev</span><span class="p">.</span><span class="nx">target</span><span class="p">)</span> <span class="p">{</span>
                                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menucmd</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="nx">oButton</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                                <span class="p">}</span>
                                <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">ev</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">_buttonClick</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

                        <span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span>
                        <span class="c1">//Hijack the mousedown event in the menu and make it fire a button click..</span>
                        <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;appendTo&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                            <span class="kd">var</span> <span class="nx">tmp</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">()</span> <span class="o">&amp;&amp;</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">mouseDownEvent</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">mouseDownEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;mouseDownEvent&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                                    <span class="kd">var</span> <span class="nx">oMenu</span> <span class="o">=</span> <span class="nx">args</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
                                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">_onMenuClick</span><span class="p">(</span><span class="nx">args</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="nx">tmp</span><span class="p">);</span>
                                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menucmd</span><span class="p">)</span> <span class="p">{</span>
                                        <span class="nx">oButton</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                                    <span class="p">}</span>
                                    <span class="nx">oButton</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="p">((</span><span class="nx">oMenu</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="o">?</span> <span class="nx">oMenu</span><span class="p">.</span><span class="nx">value</span> <span class="o">:</span> <span class="nx">oMenu</span><span class="p">.</span><span class="nx">_oText</span><span class="p">.</span><span class="nx">nodeValue</span><span class="p">);</span>
                                    <span class="nx">self</span><span class="p">.</span><span class="nx">_buttonClick</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">self</span><span class="p">,</span> <span class="nx">args</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="nx">oButton</span><span class="p">);</span>
                                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">_hideMenu</span><span class="p">();</span>
                                    <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                                <span class="p">});</span>
                                <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">clickEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;clickEvent&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                                <span class="p">});</span>
                                <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">mouseUpEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;mouseUpEvent&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                                <span class="p">});</span>
                            <span class="p">}</span>
                        <span class="p">});</span>
                        
                    <span class="p">}</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="c1">//Stop the mousedown event so we can trap the selection in the editor!</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mousedown&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                    <span class="p">});</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                    <span class="p">});</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                    <span class="cm">/*</span>
<span class="cm">                    //Add a couple of new events for IE</span>
<span class="cm">                    tmp.DOM_EVENTS.focusin = true;</span>
<span class="cm">                    tmp.DOM_EVENTS.focusout = true;</span>
<span class="cm">                    </span>
<span class="cm">                    //Stop them so we don&#39;t loose focus in the Editor</span>
<span class="cm">                    tmp.on(&#39;focusin&#39;, function(ev) {</span>
<span class="cm">                        YAHOO.util.Event.stopEvent(ev);</span>
<span class="cm">                    }, oButton, this);</span>
<span class="cm">                    </span>
<span class="cm">                    tmp.on(&#39;focusout&#39;, function(ev) {</span>
<span class="cm">                        YAHOO.util.Event.stopEvent(ev);</span>
<span class="cm">                    }, oButton, this);</span>
<span class="cm">                    tmp.on(&#39;click&#39;, function(ev) {</span>
<span class="cm">                        YAHOO.util.Event.stopEvent(ev);</span>
<span class="cm">                    }, oButton, this);</span>
<span class="cm">                    */</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span><span class="p">)</span> <span class="p">{</span>
                    <span class="c1">//This will keep the document from gaining focus and the editor from loosing it..</span>
                    <span class="c1">//Forcefully remove the focus calls in button!</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">hasFocus</span> <span class="o">=</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="k">return</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="p">};</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">((</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;menu&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;split&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;select&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Button type is (&#39;</span> <span class="o">+</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">+</span> <span class="s1">&#39;), doing extra renderer work.&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                        <span class="kd">var</span> <span class="nx">menu</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">();</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">menu</span> <span class="o">&amp;&amp;</span> <span class="nx">menu</span><span class="p">.</span><span class="nx">renderEvent</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">menu</span><span class="p">.</span><span class="nx">renderEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_addMenuClasses</span><span class="p">,</span> <span class="nx">tmp</span><span class="p">);</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">renderer</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">menu</span><span class="p">.</span><span class="nx">renderEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="nx">oButton</span><span class="p">.</span><span class="nx">renderer</span><span class="p">,</span> <span class="nx">tmp</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">oButton</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method addSeparator</span>
<span class="cm">        * @description Add a new button separator to the toolbar.</span>
<span class="cm">        * @param {HTMLElement} cont Optional HTML element to insert this button into.</span>
<span class="cm">        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.</span>
<span class="cm">        */</span>
        <span class="nx">addSeparator</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">cont</span><span class="p">,</span> <span class="nx">after</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;addSeparator&#39;</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">];</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">sepCont</span> <span class="o">=</span> <span class="p">((</span><span class="nx">cont</span><span class="p">)</span> <span class="o">?</span> <span class="nx">cont</span> <span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">));</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_queue</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;addSeparator&#39;</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">];</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_sepCount</span> <span class="o">===</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_sepCount</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_sep</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Separator does not yet exist, creating&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_sep</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;SPAN&#39;</span><span class="p">);</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_sep</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_SEPARATOR</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_sep</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;|&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Separator does exist, cloning&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">_sep</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_sep</span><span class="p">.</span><span class="nx">cloneNode</span><span class="p">(</span><span class="kc">true</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_sepCount</span><span class="o">++</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">_sep</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_SEPARATOR</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">_sepCount</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">after</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">nextSib</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">after</span><span class="p">.</span><span class="nx">get</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">nextSib</span> <span class="o">=</span> <span class="nx">after</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">nextSibling</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">after</span><span class="p">.</span><span class="nx">nextSibling</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">nextSib</span> <span class="o">=</span> <span class="nx">after</span><span class="p">.</span><span class="nx">nextSibling</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">nextSib</span> <span class="o">=</span> <span class="nx">after</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">nextSib</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">nextSib</span> <span class="o">==</span> <span class="nx">after</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">nextSib</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_sep</span><span class="p">);</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">nextSib</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">insertBefore</span><span class="p">(</span><span class="nx">_sep</span><span class="p">,</span> <span class="nx">nextSib</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="nx">sepCont</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_sep</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">_sep</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method _createColorPicker</span>
<span class="cm">        * @private</span>
<span class="cm">        * @description Creates the core DOM reference to the color picker menu item.</span>
<span class="cm">        * @param {String} id the id of the toolbar to prefix this DOM container with.</span>
<span class="cm">        */</span>
        <span class="nx">_createColorPicker</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_colors&#39;</span><span class="p">))</span> <span class="p">{</span>
               <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_colors&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_colors&#39;</span><span class="p">));</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">picker</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
            <span class="nx">picker</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;yui-toolbar-colors&#39;</span><span class="p">;</span>
            <span class="nx">picker</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_colors&#39;</span><span class="p">;</span>
            <span class="nx">picker</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;none&#39;</span><span class="p">;</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nb">window</span><span class="p">,</span> <span class="s1">&#39;load&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">picker</span><span class="p">);</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span> <span class="o">=</span> <span class="nx">picker</span><span class="p">;</span>

            <span class="kd">var</span> <span class="nx">html</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorData</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_colorData</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">html</span> <span class="o">+=</span> <span class="s1">&#39;&lt;a style=&quot;background-color: &#39;</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s1">&#39;&quot; href=&quot;#&quot;&gt;&#39;</span> <span class="o">+</span> <span class="nx">i</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="s1">&#39;#&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;&lt;/a&gt;&#39;</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="nx">html</span> <span class="o">+=</span> <span class="s1">&#39;&lt;span&gt;&lt;em&gt;X&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&#39;</span><span class="p">;</span>
            <span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nx">picker</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">html</span><span class="p">;</span>
            <span class="p">},</span> <span class="mi">0</span><span class="p">);</span>

            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">picker</span><span class="p">,</span> <span class="s1">&#39;mouseover&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">picker</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">;</span>
                <span class="kd">var</span> <span class="nx">em</span> <span class="o">=</span> <span class="nx">picker</span><span class="p">.</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;em&#39;</span><span class="p">)[</span><span class="mi">0</span><span class="p">];</span>
                <span class="kd">var</span> <span class="nx">strong</span> <span class="o">=</span> <span class="nx">picker</span><span class="p">.</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;strong&#39;</span><span class="p">)[</span><span class="mi">0</span><span class="p">];</span>
                <span class="kd">var</span> <span class="nx">tar</span> <span class="o">=</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getTarget</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">tar</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;a&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">em</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">backgroundColor</span> <span class="o">=</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">backgroundColor</span><span class="p">;</span>
                    <span class="nx">strong</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorData</span><span class="p">[</span><span class="s1">&#39;#&#39;</span> <span class="o">+</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">]</span> <span class="o">+</span> <span class="s1">&#39;&lt;br&gt;&#39;</span> <span class="o">+</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">picker</span><span class="p">,</span> <span class="s1">&#39;focus&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="p">});</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">picker</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="p">});</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">picker</span><span class="p">,</span> <span class="s1">&#39;mousedown&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">tar</span> <span class="o">=</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getTarget</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">tar</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;a&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">retVal</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;colorPickerClicked&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;colorPickerClicked&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">button</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">_button</span><span class="p">,</span> <span class="nx">color</span><span class="o">:</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">,</span> <span class="nx">colorName</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorData</span><span class="p">[</span><span class="s1">&#39;#&#39;</span> <span class="o">+</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">]</span> <span class="p">}</span> <span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">retVal</span> <span class="o">!==</span> <span class="kc">false</span><span class="p">)</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">info</span> <span class="o">=</span> <span class="p">{</span>
                            <span class="nx">color</span><span class="o">:</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">,</span>
                            <span class="nx">colorName</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorData</span><span class="p">[</span><span class="s1">&#39;#&#39;</span> <span class="o">+</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">],</span>
                            <span class="nx">value</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">_button</span> 
                        <span class="p">};</span>
                    
                        <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;buttonClick&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;buttonClick&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="nx">button</span><span class="o">:</span> <span class="nx">info</span> <span class="p">});</span>
                    <span class="p">}</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">_button</span><span class="p">).</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">hide</span><span class="p">();</span>
                <span class="p">}</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method _resetColorPicker</span>
<span class="cm">        * @private</span>
<span class="cm">        * @description Clears the currently selected color or mouseover color in the color picker.</span>
<span class="cm">        */</span>
        <span class="nx">_resetColorPicker</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">em</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;em&#39;</span><span class="p">)[</span><span class="mi">0</span><span class="p">];</span>
            <span class="kd">var</span> <span class="nx">strong</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;strong&#39;</span><span class="p">)[</span><span class="mi">0</span><span class="p">];</span>
            <span class="nx">em</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">backgroundColor</span> <span class="o">=</span> <span class="s1">&#39;transparent&#39;</span><span class="p">;</span>
            <span class="nx">strong</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method _makeColorButton</span>
<span class="cm">        * @private</span>
<span class="cm">        * @description Called to turn a &quot;color&quot; button into a menu button with an Overlay for the menu.</span>
<span class="cm">        * @param {Object} _oButton &lt;a href=&quot;YAHOO.widget.ToolbarButton.html&quot;&gt;YAHOO.widget.ToolbarButton&lt;/a&gt; reference</span>
<span class="cm">        */</span>
        <span class="nx">_makeColorButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">_oButton</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">)</span> <span class="p">{</span>   
                <span class="k">this</span><span class="p">.</span><span class="nx">_createColorPicker</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">));</span>
            <span class="p">}</span>
            <span class="nx">_oButton</span><span class="p">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s1">&#39;color&#39;</span><span class="p">;</span>
            <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_&#39;</span> <span class="o">+</span> <span class="nx">_oButton</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39;_menu&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">visible</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span> <span class="nx">position</span><span class="o">:</span> <span class="s1">&#39;absolute&#39;</span><span class="p">,</span> <span class="nx">iframe</span><span class="o">:</span> <span class="kc">true</span> <span class="p">});</span>
            <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">);</span>
            <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">render</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">));</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;yui-button-menu&#39;</span><span class="p">);</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;yui-color-button-menu&#39;</span><span class="p">);</span>
            <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">beforeShowEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;zindex&#39;</span><span class="p">,</span> <span class="mi">5</span><span class="p">);</span> <span class="c1">//Re Adjust the overlays zIndex.. not sure why.</span>
                <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;context&#39;</span><span class="p">,</span> <span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">_oButton</span><span class="p">.</span><span class="nx">id</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;tl&#39;</span><span class="p">,</span> <span class="s1">&#39;bl&#39;</span><span class="p">]);</span> <span class="c1">//Re Adjust the overlay.. not sure why.</span>
                <span class="c1">//Move the DOM reference of the color picker to the Overlay that we are about to show.</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_resetColorPicker</span><span class="p">();</span>
                <span class="kd">var</span> <span class="nx">_p</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">_p</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">_p</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">_p</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">);</span>
                <span class="nx">_oButton</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">appendToBody</span><span class="p">(</span><span class="nx">_p</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_colorPicker</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;block&#39;</span><span class="p">;</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="k">return</span> <span class="nx">_oButton</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _makeSpinButton</span>
<span class="cm">        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.</span>
<span class="cm">        * @param {Object} _button &lt;a href=&quot;YAHOO.widget.ToolbarButton.html&quot;&gt;YAHOO.widget.ToolbarButton&lt;/a&gt; reference</span>
<span class="cm">        * @param {Object} oButton Object literal containing the buttons initial config</span>
<span class="cm">        */</span>
        <span class="nx">_makeSpinButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">_button</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">_button</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-spinbutton&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">,</span>
                <span class="nx">_par</span> <span class="o">=</span> <span class="nx">_button</span><span class="p">.</span><span class="nx">_button</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">,</span> <span class="c1">//parentNode of Button Element for appending child</span>
                <span class="nx">range</span> <span class="o">=</span> <span class="nx">oButton</span><span class="p">.</span><span class="nx">range</span><span class="p">,</span>
                <span class="nx">_b1</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">),</span>
                <span class="nx">_b2</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">);</span>
                <span class="nx">_b1</span><span class="p">.</span><span class="nx">href</span> <span class="o">=</span> <span class="s1">&#39;#&#39;</span><span class="p">;</span>
                <span class="nx">_b2</span><span class="p">.</span><span class="nx">href</span> <span class="o">=</span> <span class="s1">&#39;#&#39;</span><span class="p">;</span>
                <span class="nx">_b1</span><span class="p">.</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
                <span class="nx">_b2</span><span class="p">.</span><span class="nx">tabIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
            
            <span class="c1">//Setup the up and down arrows</span>
            <span class="nx">_b1</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;up&#39;</span><span class="p">;</span>
            <span class="nx">_b1</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_SPIN_UP</span><span class="p">;</span>
            <span class="nx">_b1</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_SPIN_UP</span><span class="p">;</span>
            <span class="nx">_b2</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;down&#39;</span><span class="p">;</span>
            <span class="nx">_b2</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_SPIN_DOWN</span><span class="p">;</span>
            <span class="nx">_b2</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_SPIN_DOWN</span><span class="p">;</span>

            <span class="c1">//Append them to the container</span>
            <span class="nx">_par</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_b1</span><span class="p">);</span>
            <span class="nx">_par</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_b2</span><span class="p">);</span>
            
            <span class="kd">var</span> <span class="nx">label</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">substitute</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_SPIN_LABEL</span><span class="p">,</span> <span class="p">{</span> <span class="nx">VALUE</span><span class="o">:</span> <span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">)</span> <span class="p">});</span>
            <span class="nx">_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="p">);</span>

            <span class="kd">var</span> <span class="nx">cleanVal</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">value</span> <span class="o">=</span> <span class="p">((</span><span class="nx">value</span> <span class="o">&lt;</span> <span class="nx">range</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="o">?</span> <span class="nx">range</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">:</span> <span class="nx">value</span><span class="p">);</span>
                <span class="nx">value</span> <span class="o">=</span> <span class="p">((</span><span class="nx">value</span> <span class="o">&gt;</span> <span class="nx">range</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> <span class="o">?</span> <span class="nx">range</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">:</span> <span class="nx">value</span><span class="p">);</span>
                <span class="k">return</span> <span class="nx">value</span><span class="p">;</span>
            <span class="p">};</span>

            <span class="kd">var</span> <span class="nx">br</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">;</span>
            <span class="kd">var</span> <span class="nx">tbar</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="kd">var</span> <span class="nx">strLabel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_SPIN_LABEL</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">tbar</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">;</span>
            <span class="p">}</span>
            
            <span class="kd">var</span> <span class="nx">_intUp</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">!=</span> <span class="mi">9</span><span class="p">))</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="nx">value</span><span class="o">++</span><span class="p">;</span>
                    <span class="nx">value</span> <span class="o">=</span> <span class="nx">cleanVal</span><span class="p">(</span><span class="nx">value</span><span class="p">);</span>
                    <span class="nx">_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="o">+</span><span class="nx">value</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">label</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">substitute</span><span class="p">(</span><span class="nx">strLabel</span><span class="p">,</span> <span class="p">{</span> <span class="nx">VALUE</span><span class="o">:</span> <span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">)</span> <span class="p">});</span>
                    <span class="nx">_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">br</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="nx">tbar</span><span class="p">)</span> <span class="p">{</span>
                        <span class="c1">//tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed</span>
                        <span class="c1">//_button.focus();</span>
                    <span class="p">}</span>
                    <span class="nx">self</span><span class="p">.</span><span class="nx">_buttonClick</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">};</span>

            <span class="kd">var</span> <span class="nx">_intDown</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">!=</span> <span class="mi">9</span><span class="p">))</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="nx">value</span><span class="o">--</span><span class="p">;</span>
                    <span class="nx">value</span> <span class="o">=</span> <span class="nx">cleanVal</span><span class="p">(</span><span class="nx">value</span><span class="p">);</span>

                    <span class="nx">_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="o">+</span><span class="nx">value</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">label</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">substitute</span><span class="p">(</span><span class="nx">strLabel</span><span class="p">,</span> <span class="p">{</span> <span class="nx">VALUE</span><span class="o">:</span> <span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">)</span> <span class="p">});</span>
                    <span class="nx">_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">br</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="nx">tbar</span><span class="p">)</span> <span class="p">{</span>
                        <span class="c1">//tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed</span>
                        <span class="c1">//_button.focus();</span>
                    <span class="p">}</span>
                    <span class="nx">self</span><span class="p">.</span><span class="nx">_buttonClick</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">oButton</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">};</span>

            <span class="kd">var</span> <span class="nx">_intKeyUp</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">38</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">_intUp</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">40</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">_intDown</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">107</span> <span class="o">&amp;&amp;</span> <span class="nx">ev</span><span class="p">.</span><span class="nx">shiftKey</span><span class="p">)</span> <span class="p">{</span>  <span class="c1">//Plus Key</span>
                    <span class="nx">_intUp</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">109</span> <span class="o">&amp;&amp;</span> <span class="nx">ev</span><span class="p">.</span><span class="nx">shiftKey</span><span class="p">)</span> <span class="p">{</span>  <span class="c1">//Minus Key</span>
                    <span class="nx">_intDown</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">};</span>

            <span class="c1">//Handle arrow keys..</span>
            <span class="nx">_button</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;keydown&#39;</span><span class="p">,</span> <span class="nx">_intKeyUp</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

            <span class="c1">//Listen for the click on the up button and act on it</span>
            <span class="c1">//Listen for the click on the down button and act on it</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">_b1</span><span class="p">,</span> <span class="s1">&#39;mousedown&#39;</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">_b2</span><span class="p">,</span> <span class="s1">&#39;mousedown&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">_b1</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="nx">_intUp</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">_b2</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="nx">_intDown</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @method _buttonClick</span>
<span class="cm">        * @description Click handler for all buttons in the toolbar.</span>
<span class="cm">        * @param {String} ev The event that was passed in.</span>
<span class="cm">        * @param {Object} info Object literal of information about the button that was clicked.</span>
<span class="cm">        */</span>
        <span class="nx">_buttonClick</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">info</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">doEvent</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span> <span class="o">&amp;&amp;</span> <span class="nx">ev</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;keypress&#39;</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">9</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">doEvent</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">((</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">===</span> <span class="mi">13</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">===</span> <span class="mi">0</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">===</span> <span class="mi">32</span><span class="p">))</span> <span class="p">{</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">doEvent</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>

            <span class="k">if</span> <span class="p">(</span><span class="nx">doEvent</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">fireNextEvent</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span>
                    <span class="nx">retValue</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    
                <span class="nx">info</span><span class="p">.</span><span class="nx">isSelected</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">isSelected</span><span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">id</span><span class="p">);</span>

                <span class="k">if</span> <span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;fireEvent::&#39;</span> <span class="o">+</span> <span class="nx">info</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39;Click&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                    <span class="nx">retValue</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39;Click&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="nx">info</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39;Click&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="nx">button</span><span class="o">:</span> <span class="nx">info</span> <span class="p">});</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">retValue</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">fireNextEvent</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                
                <span class="k">if</span> <span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">&amp;&amp;</span> <span class="nx">fireNextEvent</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;fireEvent::&#39;</span> <span class="o">+</span> <span class="nx">info</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">+</span> <span class="s1">&#39;Click&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                    <span class="nx">retValue</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">+</span> <span class="s1">&#39;Click&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="nx">info</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">+</span> <span class="s1">&#39;Click&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="nx">button</span><span class="o">:</span> <span class="nx">info</span> <span class="p">});</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">retValue</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">fireNextEvent</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">fireNextEvent</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;fireEvent::buttonClick&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Toolbar&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;buttonClick&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;buttonClick&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="nx">button</span><span class="o">:</span> <span class="nx">info</span> <span class="p">});</span>
                <span class="p">}</span>

                <span class="k">if</span> <span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">type</span> <span class="o">==</span> <span class="s1">&#39;select&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">id</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">==</span> <span class="s1">&#39;rich&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">txt</span> <span class="o">=</span> <span class="nx">info</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                        <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">info</span><span class="p">.</span><span class="nx">menu</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">menu</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">info</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">txt</span> <span class="o">=</span> <span class="nx">info</span><span class="p">.</span><span class="nx">menu</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">text</span><span class="p">;</span>
                                <span class="k">break</span><span class="p">;</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                        <span class="nx">button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;span class=&quot;yui-toolbar-&#39;</span> <span class="o">+</span> <span class="nx">info</span><span class="p">.</span><span class="nx">menucmd</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">value</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/ /g</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">+</span> <span class="s1">&#39;&quot;&gt;&#39;</span> <span class="o">+</span> <span class="nx">txt</span> <span class="o">+</span> <span class="s1">&#39;&lt;/span&gt;&#39;</span><span class="p">);</span>
                        <span class="kd">var</span> <span class="nx">_items</span> <span class="o">=</span> <span class="nx">button</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">getItems</span><span class="p">();</span>
                        <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">m</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">m</span> <span class="o">&lt;</span> <span class="nx">_items</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">m</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">value</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="nx">info</span><span class="p">.</span><span class="nx">value</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">())</span> <span class="p">{</span>
                                <span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;checked&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                <span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;checked&#39;</span><span class="p">,</span> <span class="kc">false</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _keyNav</span>
<span class="cm">        * @description Flag to determine if the arrow nav listeners have been attached</span>
<span class="cm">        * @type Boolean</span>
<span class="cm">        */</span>
        <span class="nx">_keyNav</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _navCounter</span>
<span class="cm">        * @description Internal counter for walking the buttons in the toolbar with the arrow keys</span>
<span class="cm">        * @type Number</span>
<span class="cm">        */</span>
        <span class="nx">_navCounter</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _navigateButtons</span>
<span class="cm">        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys</span>
<span class="cm">        * @param {Event} ev The Key Event</span>
<span class="cm">        */</span>
        <span class="nx">_navigateButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">switch</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">case</span> <span class="mi">37</span><span class="o">:</span>
                <span class="k">case</span> <span class="mi">39</span><span class="o">:</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">37</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span><span class="o">--</span><span class="p">;</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span><span class="o">++</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span> <span class="o">&gt;</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span> <span class="o">-</span> <span class="mi">1</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span> <span class="o">-</span> <span class="mi">1</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span><span class="p">])</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span><span class="p">].</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span><span class="p">].</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">)[</span><span class="mi">0</span><span class="p">];</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span><span class="p">].</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_navigateButtons</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">focus</span><span class="p">();</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">break</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleFocus</span>
<span class="cm">        * @description Sets up the listeners for the arrow key navigation</span>
<span class="cm">        */</span>
        <span class="nx">_handleFocus</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_keyNav</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">ev</span> <span class="o">=</span> <span class="s1">&#39;keypress&#39;</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">ev</span> <span class="o">=</span> <span class="s1">&#39;keydown&#39;</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="nx">ev</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_navigateButtons</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_keyNav</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_navCounter</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getButtonById</span>
<span class="cm">        * @description Gets a button instance from the toolbar by is Dom id.</span>
<span class="cm">        * @param {String} id The Dom id to query for.</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.widget.ToolbarButton.html&quot;&gt;YAHOO.widget.ToolbarButton&lt;/a&gt;}</span>
<span class="cm">        */</span>
        <span class="nx">getButtonById</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getButtonByValue</span>
<span class="cm">        * @description Gets a button instance or a menuitem instance from the toolbar by it&#39;s value.</span>
<span class="cm">        * @param {String} value The button value to query for.</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.widget.ToolbarButton.html&quot;&gt;YAHOO.widget.ToolbarButton&lt;/a&gt; or &lt;a href=&quot;YAHOO.widget.MenuItem.html&quot;&gt;YAHOO.widget.MenuItem&lt;/a&gt;}</span>
<span class="cm">        */</span>
        <span class="nx">getButtonByValue</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">_buttons</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;buttons&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">_buttons</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="nx">_buttons</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">group</span> <span class="o">!==</span> <span class="kc">undefined</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">m</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">m</span> <span class="o">&lt;</span> <span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">m</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">((</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">value</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">menucmd</span> <span class="o">==</span> <span class="nx">value</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">id</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">menu</span><span class="p">)</span> <span class="p">{</span> <span class="c1">//Menu Button, loop through the values</span>
                            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">s</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">s</span> <span class="o">&lt;</span> <span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">menu</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">s</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">menu</span><span class="p">[</span><span class="nx">s</span><span class="p">].</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                                    <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">buttons</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">id</span><span class="p">);</span>
                                <span class="p">}</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">((</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">value</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">menucmd</span> <span class="o">==</span> <span class="nx">value</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">id</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">menu</span><span class="p">)</span> <span class="p">{</span> <span class="c1">//Menu Button, loop through the values</span>
                        <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">j</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">j</span> <span class="o">&lt;</span> <span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">menu</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">j</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">menu</span><span class="p">[</span><span class="nx">j</span><span class="p">].</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                                <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">_buttons</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">id</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getButtonByIndex</span>
<span class="cm">        * @description Gets a button instance from the toolbar by is index in _buttonList.</span>
<span class="cm">        * @param {Number} index The index of the button in _buttonList.</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.widget.ToolbarButton.html&quot;&gt;YAHOO.widget.ToolbarButton&lt;/a&gt;}</span>
<span class="cm">        */</span>
        <span class="nx">getButtonByIndex</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">index</span><span class="p">])</span> <span class="p">{</span>
                <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">index</span><span class="p">];</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getButtons</span>
<span class="cm">        * @description Returns an array of buttons in the current toolbar</span>
<span class="cm">        * @return {Array}</span>
<span class="cm">        */</span>
        <span class="nx">getButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method disableButton</span>
<span class="cm">        * @description Disables a button in the toolbar.</span>
<span class="cm">        * @param {String/Number} id Disable a button by it&#39;s id, index or value.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">disableButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">getButton</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">id</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method enableButton</span>
<span class="cm">        * @description Enables a button in the toolbar.</span>
<span class="cm">        * @param {String/Number} id Enable a button by it&#39;s id, index or value.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">enableButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">getButton</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">id</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="kc">false</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method isSelected</span>
<span class="cm">        * @description Tells if a button is selected or not.</span>
<span class="cm">        * @param {String/Number} id A button by it&#39;s id, index or value.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">isSelected</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">getButton</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">id</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="nx">button</span><span class="p">.</span><span class="nx">_selected</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method selectButton</span>
<span class="cm">        * @description Selects a button in the toolbar.</span>
<span class="cm">        * @param {String/Number} id Select a button by it&#39;s id, index or value.</span>
<span class="cm">        * @param {String} value If this is a Menu Button, check this item in the menu</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">selectButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">,</span> <span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">getButton</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">id</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">&#39;yui-button-selected&#39;</span><span class="p">);</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">&#39;yui-button-&#39;</span> <span class="o">+</span> <span class="nx">button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-selected&#39;</span><span class="p">);</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">_selected</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">==</span> <span class="s1">&#39;rich&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">_items</span> <span class="o">=</span> <span class="nx">button</span><span class="p">.</span><span class="nx">getMenu</span><span class="p">().</span><span class="nx">getItems</span><span class="p">();</span>
                        <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">m</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">m</span> <span class="o">&lt;</span> <span class="nx">_items</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">m</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;checked&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                                <span class="nx">button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;span class=&quot;yui-toolbar-&#39;</span> <span class="o">+</span> <span class="nx">button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="p">(</span><span class="nx">value</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/ /g</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">+</span> <span class="s1">&#39;&quot;&gt;&#39;</span> <span class="o">+</span> <span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">_oText</span><span class="p">.</span><span class="nx">nodeValue</span> <span class="o">+</span> <span class="s1">&#39;&lt;/span&gt;&#39;</span><span class="p">);</span>
                            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                <span class="nx">_items</span><span class="p">[</span><span class="nx">m</span><span class="p">].</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;checked&#39;</span><span class="p">,</span> <span class="kc">false</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method deselectButton</span>
<span class="cm">        * @description Deselects a button in the toolbar.</span>
<span class="cm">        * @param {String/Number} id Deselect a button by it&#39;s id, index or value.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">deselectButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">getButton</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">id</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s1">&#39;yui-button-selected&#39;</span><span class="p">);</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s1">&#39;yui-button-&#39;</span> <span class="o">+</span> <span class="nx">button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-selected&#39;</span><span class="p">);</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s1">&#39;yui-button-hover&#39;</span><span class="p">);</span>
                <span class="nx">button</span><span class="p">.</span><span class="nx">_selected</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method deselectAllButtons</span>
<span class="cm">        * @description Deselects all buttons in the toolbar.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">deselectAllButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">deselectButton</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method disableAllButtons</span>
<span class="cm">        * @description Disables all buttons in the toolbar.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">disableAllButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">disableButton</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method enableAllButtons</span>
<span class="cm">        * @description Enables all buttons in the toolbar.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">enableAllButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method resetAllButtons</span>
<span class="cm">        * @description Resets all buttons to their initial state.</span>
<span class="cm">        * @param {Object} _ex Except these buttons</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">resetAllButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">_ex</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">_ex</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">_ex</span> <span class="o">=</span> <span class="p">{};</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">_button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">_button</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">disabled</span> <span class="o">=</span> <span class="nx">_button</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">disabled</span><span class="p">.</span><span class="nx">_initialConfig</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">_ex</span><span class="p">[</span><span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)])</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="nx">_button</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="nx">_button</span><span class="p">);</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">disabled</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">disableButton</span><span class="p">(</span><span class="nx">_button</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="nx">_button</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">deselectButton</span><span class="p">(</span><span class="nx">_button</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method destroyButton</span>
<span class="cm">        * @description Destroy a button in the toolbar.</span>
<span class="cm">        * @param {String/Number} id Destroy a button by it&#39;s id or index.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">destroyButton</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">button</span> <span class="o">=</span> <span class="nx">getButton</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">id</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">button</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">thisID</span> <span class="o">=</span> <span class="nx">button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">),</span>
                    <span class="nx">new_list</span> <span class="o">=</span> <span class="p">[],</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>

                <span class="nx">button</span><span class="p">.</span><span class="nx">destroy</span><span class="p">();</span>
                
                <span class="k">for</span> <span class="p">(</span><span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">!=</span> <span class="nx">thisID</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">new_list</span><span class="p">[</span><span class="nx">new_list</span><span class="p">.</span><span class="nx">length</span><span class="p">]</span><span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
                    <span class="p">}</span>
                <span class="p">}</span>

                <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span> <span class="o">=</span> <span class="nx">new_list</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method destroy</span>
<span class="cm">        * @description Destroys the toolbar, all of it&#39;s elements and objects.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">destroy</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span><span class="p">.</span><span class="nx">length</span><span class="p">,</span> <span class="nx">j</span><span class="p">,</span> <span class="nx">i</span><span class="p">,</span> <span class="nx">b</span><span class="p">;</span>
            <span class="k">for</span><span class="p">(</span><span class="nx">b</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">b</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">b</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">destroyButton</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span><span class="p">[</span><span class="nx">b</span><span class="p">]);</span>
            <span class="p">}</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">_configuredButtons</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
        
            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="c1">//Brutal Object Destroy</span>
            <span class="k">for</span> <span class="p">(</span><span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="kc">true</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method collapse</span>
<span class="cm">        * @description Programatically collapse the toolbar.</span>
<span class="cm">        * @param {Boolean} collapse True to collapse, false to expand.</span>
<span class="cm">        */</span>
        <span class="nx">collapse</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">collapse</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getElementsByClassName</span><span class="p">(</span><span class="s1">&#39;collapse&#39;</span><span class="p">,</span> <span class="s1">&#39;span&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_titlebar</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">collapse</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-container-collapsed&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="p">{</span>
                    <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">el</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;collapsed&#39;</span><span class="p">);</span>
                    <span class="nx">el</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_COLLAPSE</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;toolbarExpanded&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;toolbarExpanded&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span> <span class="p">});</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="p">{</span>
                    <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">el</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;collapsed&#39;</span><span class="p">);</span>
                    <span class="nx">el</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_EXPAND</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;yui-toolbar-container-collapsed&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;toolbarCollapsed&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;toolbarCollapsed&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span> <span class="p">});</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method toString</span>
<span class="cm">        * @description Returns a string representing the toolbar.</span>
<span class="cm">        * @return {String}</span>
<span class="cm">        */</span>
        <span class="nx">toString</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="s1">&#39;Toolbar (#&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;) with &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">_buttonList</span><span class="p">.</span><span class="nx">length</span> <span class="o">+</span> <span class="s1">&#39; buttons.&#39;</span><span class="p">;</span>
        <span class="p">}</span>
    <span class="p">});</span>
<span class="cm">/**</span>
<span class="cm">* @event buttonClick</span>
<span class="cm">* @param {Object} o The object passed to this handler is the button config used to create the button.</span>
<span class="cm">* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event valueClick</span>
<span class="cm">* @param {Object} o The object passed to this handler is the button config used to create the button.</span>
<span class="cm">* @description This is a special dynamic event that is created and dispatched based on the value property</span>
<span class="cm">* of the button config. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* Example:</span>
<span class="cm">* &lt;code&gt;&lt;pre&gt;</span>
<span class="cm">* buttons : [</span>
<span class="cm">*   { type: &#39;button&#39;, value: &#39;test&#39;, value: &#39;testButton&#39; }</span>
<span class="cm">* ]&lt;/pre&gt;</span>
<span class="cm">* &lt;/code&gt;</span>
<span class="cm">* With the valueClick event you could subscribe to this buttons click event with this:</span>
<span class="cm">* tbar.in(&#39;testButtonClick&#39;, function() { alert(&#39;test button clicked&#39;); })</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event toolbarExpanded</span>
<span class="cm">* @description Fires when the toolbar is expanded via the collapse button. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event toolbarCollapsed</span>
<span class="cm">* @description Fires when the toolbar is collapsed via the collapse button. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="p">})();</span>
</pre></div>

                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class="selected"><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_element-delegate.html" title="element-delegate">element-delegate</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-delegate.html" title="event-delegate">event-delegate</a></li>
                                <li class=""><a href="module_event-mouseenter.html" title="event-mouseenter">event-mouseenter</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_progressbar.html" title="progressbar">progressbar</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_storage.html" title="Storage">Storage</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_swf.html" title="swf">swf</a></li>
                                <li class=""><a href="module_swfdetect.html" title="swfdetect">swfdetect</a></li>
                                <li class=""><a href="module_swfstore.html" title="swfstore">swfstore</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.widget.Editor.html" title="YAHOO.widget.Editor">YAHOO.widget.Editor</a></li>
                                <li class=""><a href="YAHOO.widget.EditorInfo.html" title="YAHOO.widget.EditorInfo">YAHOO.widget.EditorInfo</a></li>
                                <li class=""><a href="YAHOO.widget.EditorWindow.html" title="YAHOO.widget.EditorWindow">YAHOO.widget.EditorWindow</a></li>
                                <li class=""><a href="YAHOO.widget.SimpleEditor.html" title="YAHOO.widget.SimpleEditor">YAHOO.widget.SimpleEditor</a></li>
                                <li class=""><a href="YAHOO.widget.Toolbar.html" title="YAHOO.widget.Toolbar">YAHOO.widget.Toolbar</a></li>
                                <li class=""><a href="YAHOO.widget.ToolbarButton.html" title="YAHOO.widget.ToolbarButton">YAHOO.widget.ToolbarButton</a></li>
                                <li class=""><a href="YAHOO.widget.ToolbarButtonAdvanced.html" title="YAHOO.widget.ToolbarButtonAdvanced">YAHOO.widget.ToolbarButtonAdvanced</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class=""><a href="editor.js.html" title="editor.js">editor.js</a></li>
                                <li class=""><a href="simple-editor.js.html" title="simple-editor.js">simple-editor.js</a></li>
                                <li class=""><a href="toolbar-button.js.html" title="toolbar-button.js">toolbar-button.js</a></li>
                                <li class="selected"><a href="toolbar.js.html" title="toolbar.js">toolbar.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2011 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">

    var ALL_YUI_PROPS = [{"access": "", "host": "YAHOO.widget.Toolbar", "name": "addButton", "url": "YAHOO.widget.Toolbar.html#method_addButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "addButtonGroup", "url": "YAHOO.widget.Toolbar.html#method_addButtonGroup", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "addButtonToGroup", "url": "YAHOO.widget.Toolbar.html#method_addButtonToGroup", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_addMenuClasses", "url": "YAHOO.widget.Toolbar.html#method__addMenuClasses", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "addSeparator", "url": "YAHOO.widget.Toolbar.html#method_addSeparator", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterElement", "url": "YAHOO.widget.SimpleEditor.html#property_afterElement", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterExecCommand", "url": "YAHOO.widget.SimpleEditor.html#event_afterExecCommand", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterNodeChange", "url": "YAHOO.widget.SimpleEditor.html#event_afterNodeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "afterOpenWindow", "url": "YAHOO.widget.Editor.html#event_afterOpenWindow", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterRender", "url": "YAHOO.widget.SimpleEditor.html#event_afterRender", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "allowNoEdit", "url": "YAHOO.widget.SimpleEditor.html#config_allowNoEdit", "type": "config"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_alwaysDisabled", "url": "YAHOO.widget.Editor.html#property__alwaysDisabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_alwaysDisabled", "url": "YAHOO.widget.SimpleEditor.html#property__alwaysDisabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_alwaysEnabled", "url": "YAHOO.widget.Editor.html#property__alwaysEnabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_alwaysEnabled", "url": "YAHOO.widget.SimpleEditor.html#property__alwaysEnabled", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "animate", "url": "YAHOO.widget.SimpleEditor.html#config_animate", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "animateChange", "url": "YAHOO.widget.SimpleEditor.html#event_animateChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "attrs", "url": "YAHOO.widget.EditorWindow.html#property_attrs", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "autoHeight", "url": "YAHOO.widget.SimpleEditor.html#config_autoHeight", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_baseHREF", "url": "YAHOO.widget.SimpleEditor.html#property__baseHREF", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeAnimateChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeAnimateChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeBlankimageChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeBlankimageChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeButtonsChange", "url": "YAHOO.widget.Toolbar.html#event_beforeButtonsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeButtonTypeChange", "url": "YAHOO.widget.Toolbar.html#event_beforeButtonTypeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeCollapseChange", "url": "YAHOO.widget.Toolbar.html#event_beforeCollapseChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeCssChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeCssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeDisabledChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeDisabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeDisabledChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeDisabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeDisabledChange", "url": "YAHOO.widget.Toolbar.html#event_beforeDisabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeDompathChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeDompathChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeDraggableChange", "url": "YAHOO.widget.Toolbar.html#event_beforeDraggableChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorClick", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorDoubleClick", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorDoubleClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorKeyDown", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorKeyDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorKeyPress", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorKeyPress", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorKeyUp", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorKeyUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorMouseDown", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorMouseDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorMouseUp", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorMouseUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeElement", "url": "YAHOO.widget.SimpleEditor.html#property_beforeElement", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeExecCommand", "url": "YAHOO.widget.SimpleEditor.html#event_beforeExecCommand", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeExtracssChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeExtracssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeFocusAtStartChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeFocusAtStartChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeGrouplabelsChange", "url": "YAHOO.widget.Toolbar.html#event_beforeGrouplabelsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeHandleSubmitChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeHandleSubmitChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeHeightChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "beforeHiddencssChange", "url": "YAHOO.widget.Editor.html#event_beforeHiddencssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeHtmlChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeHtmlChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeLabelChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeLabelChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "beforeLocalFileWarningChange", "url": "YAHOO.widget.Editor.html#event_beforeLocalFileWarningChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeMarkupChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeMarkupChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeMenuChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeMenuChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeNodeChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeNodeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "beforeOpenWindow", "url": "YAHOO.widget.Editor.html#event_beforeOpenWindow", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeRemoveLineBreaksChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeRemoveLineBreaksChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeTitlebarChange", "url": "YAHOO.widget.Toolbar.html#event_beforeTitlebarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeTitleChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeTitleChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeToolbarChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeToolbarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeTypeChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeTypeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeValueChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeValueChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeWidthChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "blankimage", "url": "YAHOO.widget.SimpleEditor.html#config_blankimage", "type": "config"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "blankImage", "url": "YAHOO.widget.EditorInfo.html#property_blankImage", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "blankimageChange", "url": "YAHOO.widget.SimpleEditor.html#event_blankimageChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_blankImageLoaded", "url": "YAHOO.widget.SimpleEditor.html#property__blankImageLoaded", "type": "property"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "body", "url": "YAHOO.widget.EditorWindow.html#property_body", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "browser", "url": "YAHOO.widget.SimpleEditor.html#property_browser", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "browser", "url": "YAHOO.widget.Toolbar.html#property_browser", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_buttonClick", "url": "YAHOO.widget.Toolbar.html#method__buttonClick", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonClick", "url": "YAHOO.widget.Toolbar.html#event_buttonClick", "type": "event"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_buttonGroupList", "url": "YAHOO.widget.Toolbar.html#property__buttonGroupList", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_buttonList", "url": "YAHOO.widget.Toolbar.html#property__buttonList", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttons", "url": "YAHOO.widget.Toolbar.html#config_buttons", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonsChange", "url": "YAHOO.widget.Toolbar.html#event_buttonsChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.ToolbarButtonAdvanced", "name": "buttonType", "url": "YAHOO.widget.ToolbarButtonAdvanced.html#property_buttonType", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "buttonType", "url": "YAHOO.widget.ToolbarButton.html#property_buttonType", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonType", "url": "YAHOO.widget.Toolbar.html#property_buttonType", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonType", "url": "YAHOO.widget.Toolbar.html#config_buttonType", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonTypeChange", "url": "YAHOO.widget.Toolbar.html#event_buttonTypeChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_checkKey", "url": "YAHOO.widget.SimpleEditor.html#method__checkKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_checkLoaded", "url": "YAHOO.widget.SimpleEditor.html#method__checkLoaded", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_checkUndo", "url": "YAHOO.widget.Editor.html#method__checkUndo", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButtonAdvanced", "name": "checkValue", "url": "YAHOO.widget.ToolbarButtonAdvanced.html#method_checkValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "checkValue", "url": "YAHOO.widget.ToolbarButton.html#method_checkValue", "type": "method"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_CONTAINER", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_CONTAINER", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_CONTAINER", "url": "YAHOO.widget.Toolbar.html#property_CLASS_CONTAINER", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_DISABLED", "url": "YAHOO.widget.Toolbar.html#property_CLASS_DISABLED", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_DRAGHANDLE", "url": "YAHOO.widget.Toolbar.html#property_CLASS_DRAGHANDLE", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_EDITABLE", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_EDITABLE", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_EDITABLE_CONT", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_EDITABLE_CONT", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Editor", "name": "CLASS_HIDDEN", "url": "YAHOO.widget.Editor.html#property_CLASS_HIDDEN", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Editor", "name": "CLASS_LOCAL_FILE", "url": "YAHOO.widget.Editor.html#property_CLASS_LOCAL_FILE", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_NOEDIT", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_NOEDIT", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_PREFIX", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_PREFIX", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_PREFIX", "url": "YAHOO.widget.Toolbar.html#property_CLASS_PREFIX", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_SEPARATOR", "url": "YAHOO.widget.Toolbar.html#property_CLASS_SEPARATOR", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_cleanClassName", "url": "YAHOO.widget.SimpleEditor.html#method__cleanClassName", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cleanHTML", "url": "YAHOO.widget.SimpleEditor.html#method_cleanHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cleanHTML", "url": "YAHOO.widget.SimpleEditor.html#event_cleanHTML", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_cleanIncomingHTML", "url": "YAHOO.widget.SimpleEditor.html#method__cleanIncomingHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "clearEditorDoc", "url": "YAHOO.widget.SimpleEditor.html#method_clearEditorDoc", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_closeWindow", "url": "YAHOO.widget.Editor.html#method__closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "closeWindow", "url": "YAHOO.widget.Editor.html#method_closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "closeWindow", "url": "YAHOO.widget.Editor.html#event_closeWindow", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_closeWindow", "url": "YAHOO.widget.SimpleEditor.html#method__closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "closeWindow", "url": "YAHOO.widget.SimpleEditor.html#method_closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_backcolor", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_backcolor", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_bold", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_bold", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_createlink", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_createlink", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_fontname", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_fontname", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_fontsize", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_fontsize", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_forecolor", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_forecolor", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_heading", "url": "YAHOO.widget.Editor.html#method_cmd_heading", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_hiddenelements", "url": "YAHOO.widget.Editor.html#method_cmd_hiddenelements", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_indent", "url": "YAHOO.widget.Editor.html#method_cmd_indent", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_inserthtml", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_inserthtml", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_insertimage", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_insertimage", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_insertorderedlist", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_insertorderedlist", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_insertunorderedlist", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_insertunorderedlist", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_italic", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_italic", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justify", "url": "YAHOO.widget.Editor.html#method_cmd_justify", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justifycenter", "url": "YAHOO.widget.Editor.html#method_cmd_justifycenter", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justifyleft", "url": "YAHOO.widget.Editor.html#method_cmd_justifyleft", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justifyright", "url": "YAHOO.widget.Editor.html#method_cmd_justifyright", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_list", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_list", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_outdent", "url": "YAHOO.widget.Editor.html#method_cmd_outdent", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_redo", "url": "YAHOO.widget.Editor.html#method_cmd_redo", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_removeformat", "url": "YAHOO.widget.Editor.html#method_cmd_removeformat", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_script", "url": "YAHOO.widget.Editor.html#method_cmd_script", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_subscript", "url": "YAHOO.widget.Editor.html#method_cmd_subscript", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_superscript", "url": "YAHOO.widget.Editor.html#method_cmd_superscript", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_underline", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_underline", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_undo", "url": "YAHOO.widget.Editor.html#method_cmd_undo", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_unlink", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_unlink", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "collapse", "url": "YAHOO.widget.Toolbar.html#method_collapse", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "collapse", "url": "YAHOO.widget.Toolbar.html#config_collapse", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "collapseChange", "url": "YAHOO.widget.Toolbar.html#event_collapseChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "_colorData", "url": "YAHOO.widget.Toolbar.html#property__colorData", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "_colorPicker", "url": "YAHOO.widget.Toolbar.html#property__colorPicker", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_configuredButtons", "url": "YAHOO.widget.Toolbar.html#property__configuredButtons", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "cont", "url": "YAHOO.widget.Toolbar.html#config_cont", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "container", "url": "YAHOO.widget.SimpleEditor.html#config_container", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "container", "url": "YAHOO.widget.ToolbarButton.html#config_container", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_contentTimer", "url": "YAHOO.widget.SimpleEditor.html#property__contentTimer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_contentTimerCounter", "url": "YAHOO.widget.SimpleEditor.html#property__contentTimerCounter", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_contentTimerMax", "url": "YAHOO.widget.SimpleEditor.html#property__contentTimerMax", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_createColorPicker", "url": "YAHOO.widget.Toolbar.html#method__createColorPicker", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_createCurrentElement", "url": "YAHOO.widget.SimpleEditor.html#method__createCurrentElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_createIframe", "url": "YAHOO.widget.SimpleEditor.html#method__createIframe", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_createInsertElement", "url": "YAHOO.widget.SimpleEditor.html#method__createInsertElement", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "css", "url": "YAHOO.widget.SimpleEditor.html#config_css", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cssChange", "url": "YAHOO.widget.SimpleEditor.html#event_cssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentElement", "url": "YAHOO.widget.SimpleEditor.html#property_currentElement", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentEvent", "url": "YAHOO.widget.SimpleEditor.html#property_currentEvent", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentFont", "url": "YAHOO.widget.SimpleEditor.html#property_currentFont", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentWindow", "url": "YAHOO.widget.SimpleEditor.html#property_currentWindow", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dd", "url": "YAHOO.widget.SimpleEditor.html#property_dd", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "dd", "url": "YAHOO.widget.Toolbar.html#property_dd", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_defaultCSS", "url": "YAHOO.widget.SimpleEditor.html#property__defaultCSS", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_defaultImageToolbar", "url": "YAHOO.widget.Editor.html#method__defaultImageToolbar", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_defaultImageToolbarConfig", "url": "YAHOO.widget.Editor.html#method__defaultImageToolbarConfig", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_defaultToolbar", "url": "YAHOO.widget.SimpleEditor.html#property__defaultToolbar", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "deselectAllButtons", "url": "YAHOO.widget.Toolbar.html#method_deselectAllButtons", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "deselectButton", "url": "YAHOO.widget.Toolbar.html#method_deselectButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "destroy", "url": "YAHOO.widget.SimpleEditor.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "destroy", "url": "YAHOO.widget.ToolbarButton.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "destroy", "url": "YAHOO.widget.Toolbar.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "destroyButton", "url": "YAHOO.widget.Toolbar.html#method_destroyButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disableAllButtons", "url": "YAHOO.widget.Toolbar.html#method_disableAllButtons", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disableButton", "url": "YAHOO.widget.Toolbar.html#method_disableButton", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_disabled", "url": "YAHOO.widget.Editor.html#property__disabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_disabled", "url": "YAHOO.widget.SimpleEditor.html#property__disabled", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "disabled", "url": "YAHOO.widget.SimpleEditor.html#config_disabled", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "disabled", "url": "YAHOO.widget.ToolbarButton.html#config_disabled", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disabled", "url": "YAHOO.widget.Toolbar.html#config_disabled", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "disabledChange", "url": "YAHOO.widget.SimpleEditor.html#event_disabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "disabledChange", "url": "YAHOO.widget.ToolbarButton.html#event_disabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disabledChange", "url": "YAHOO.widget.Toolbar.html#event_disabledChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "disabled_iframe", "url": "YAHOO.widget.SimpleEditor.html#config_disabled_iframe", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_disableEditor", "url": "YAHOO.widget.SimpleEditor.html#method__disableEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_docType", "url": "YAHOO.widget.SimpleEditor.html#property__docType", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dompath", "url": "YAHOO.widget.SimpleEditor.html#property_dompath", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dompath", "url": "YAHOO.widget.SimpleEditor.html#config_dompath", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dompathChange", "url": "YAHOO.widget.SimpleEditor.html#event_dompathChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "DOMReady", "url": "YAHOO.widget.SimpleEditor.html#property_DOMReady", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "drag", "url": "YAHOO.widget.SimpleEditor.html#config_drag", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "draggable", "url": "YAHOO.widget.Toolbar.html#config_draggable", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "draggableChange", "url": "YAHOO.widget.Toolbar.html#event_draggableChange", "type": "event"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "draghandle", "url": "YAHOO.widget.Toolbar.html#property_draghandle", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorClick", "url": "YAHOO.widget.SimpleEditor.html#event_editorClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorContentLoaded", "url": "YAHOO.widget.SimpleEditor.html#event_editorContentLoaded", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorDirty", "url": "YAHOO.widget.SimpleEditor.html#property_editorDirty", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorDoubleClick", "url": "YAHOO.widget.SimpleEditor.html#event_editorDoubleClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorKeyDown", "url": "YAHOO.widget.SimpleEditor.html#event_editorKeyDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorKeyPress", "url": "YAHOO.widget.SimpleEditor.html#event_editorKeyPress", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorKeyUp", "url": "YAHOO.widget.SimpleEditor.html#event_editorKeyUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorMouseDown", "url": "YAHOO.widget.SimpleEditor.html#event_editorMouseDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorMouseUp", "url": "YAHOO.widget.SimpleEditor.html#event_editorMouseUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "EDITOR_PANEL_ID", "url": "YAHOO.widget.Editor.html#property_EDITOR_PANEL_ID", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorWindowBlur", "url": "YAHOO.widget.SimpleEditor.html#event_editorWindowBlur", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorWindowFocus", "url": "YAHOO.widget.SimpleEditor.html#event_editorWindowFocus", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "editor_wrapper", "url": "YAHOO.widget.SimpleEditor.html#config_editor_wrapper", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "element_cont", "url": "YAHOO.widget.SimpleEditor.html#config_element_cont", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "enableAllButtons", "url": "YAHOO.widget.Toolbar.html#method_enableAllButtons", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "enableButton", "url": "YAHOO.widget.Toolbar.html#method_enableButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "execCommand", "url": "YAHOO.widget.SimpleEditor.html#method_execCommand", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "extracss", "url": "YAHOO.widget.SimpleEditor.html#config_extracss", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "extracssChange", "url": "YAHOO.widget.SimpleEditor.html#event_extracssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_all_rgb", "url": "YAHOO.widget.SimpleEditor.html#method_filter_all_rgb", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_internals", "url": "YAHOO.widget.SimpleEditor.html#method_filter_internals", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_invalid_lists", "url": "YAHOO.widget.SimpleEditor.html#method_filter_invalid_lists", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_msword", "url": "YAHOO.widget.SimpleEditor.html#method_filter_msword", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_rgb", "url": "YAHOO.widget.SimpleEditor.html#method_filter_rgb", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_safari", "url": "YAHOO.widget.SimpleEditor.html#method_filter_safari", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filterWord", "url": "YAHOO.widget.SimpleEditor.html#config_filterWord", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "fireEvent", "url": "YAHOO.widget.ToolbarButton.html#method_fireEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixListDupIds", "url": "YAHOO.widget.SimpleEditor.html#method__fixListDupIds", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixListRunning", "url": "YAHOO.widget.SimpleEditor.html#property__fixListRunning", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_fixNodes", "url": "YAHOO.widget.Editor.html#method__fixNodes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixNodes", "url": "YAHOO.widget.SimpleEditor.html#method__fixNodes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixNodesTimer", "url": "YAHOO.widget.SimpleEditor.html#property__fixNodesTimer", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "focus", "url": "YAHOO.widget.SimpleEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "focusAtStart", "url": "YAHOO.widget.SimpleEditor.html#config_focusAtStart", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "focusAtStartChange", "url": "YAHOO.widget.SimpleEditor.html#event_focusAtStartChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_focused", "url": "YAHOO.widget.SimpleEditor.html#property__focused", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_focusWindow", "url": "YAHOO.widget.SimpleEditor.html#method__focusWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "footer", "url": "YAHOO.widget.EditorWindow.html#property_footer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_formButtonClicked", "url": "YAHOO.widget.SimpleEditor.html#property__formButtonClicked", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_formButtons", "url": "YAHOO.widget.SimpleEditor.html#property__formButtons", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getBlankImage", "url": "YAHOO.widget.SimpleEditor.html#method__getBlankImage", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtonById", "url": "YAHOO.widget.Toolbar.html#method_getButtonById", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtonByIndex", "url": "YAHOO.widget.Toolbar.html#method_getButtonByIndex", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtonByValue", "url": "YAHOO.widget.Toolbar.html#method_getButtonByValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtons", "url": "YAHOO.widget.Toolbar.html#method_getButtons", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getDoc", "url": "YAHOO.widget.SimpleEditor.html#method__getDoc", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getDomPath", "url": "YAHOO.widget.SimpleEditor.html#method__getDomPath", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorInfo", "name": "getEditorById", "url": "YAHOO.widget.EditorInfo.html#method_getEditorById", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "getEditorHTML", "url": "YAHOO.widget.SimpleEditor.html#method_getEditorHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "getMenu", "url": "YAHOO.widget.ToolbarButton.html#method_getMenu", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getRange", "url": "YAHOO.widget.SimpleEditor.html#method__getRange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getSelectedElement", "url": "YAHOO.widget.SimpleEditor.html#method__getSelectedElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getSelection", "url": "YAHOO.widget.SimpleEditor.html#method__getSelection", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_getUndo", "url": "YAHOO.widget.Editor.html#method__getUndo", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getWindow", "url": "YAHOO.widget.SimpleEditor.html#method__getWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "grouplabels", "url": "YAHOO.widget.Toolbar.html#config_grouplabels", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "grouplabelsChange", "url": "YAHOO.widget.Toolbar.html#event_grouplabelsChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleAfterNodeChange", "url": "YAHOO.widget.SimpleEditor.html#method__handleAfterNodeChange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleAlign", "url": "YAHOO.widget.SimpleEditor.html#method__handleAlign", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleAutoHeight", "url": "YAHOO.widget.SimpleEditor.html#method__handleAutoHeight", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleBlur", "url": "YAHOO.widget.SimpleEditor.html#method__handleBlur", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleColorPicker", "url": "YAHOO.widget.SimpleEditor.html#method__handleColorPicker", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleCreateLinkClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleCreateLinkClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleCreateLinkWindowClose", "url": "YAHOO.widget.Editor.html#method__handleCreateLinkWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleCreateLinkWindowClose", "url": "YAHOO.widget.SimpleEditor.html#method__handleCreateLinkWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleDoubleClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleDoubleClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFocus", "url": "YAHOO.widget.SimpleEditor.html#method__handleFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_handleFocus", "url": "YAHOO.widget.Toolbar.html#method__handleFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFontSize", "url": "YAHOO.widget.SimpleEditor.html#method__handleFontSize", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFormButtonClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleFormButtonClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFormSubmit", "url": "YAHOO.widget.SimpleEditor.html#method__handleFormSubmit", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleInsertImageClick", "url": "YAHOO.widget.Editor.html#method__handleInsertImageClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleInsertImageClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleInsertImageClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleInsertImageWindowClose", "url": "YAHOO.widget.Editor.html#method__handleInsertImageWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleInsertImageWindowClose", "url": "YAHOO.widget.SimpleEditor.html#method__handleInsertImageWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleKeyDown", "url": "YAHOO.widget.Editor.html#method__handleKeyDown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleKeyDown", "url": "YAHOO.widget.SimpleEditor.html#method__handleKeyDown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleKeyPress", "url": "YAHOO.widget.SimpleEditor.html#method__handleKeyPress", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleKeyUp", "url": "YAHOO.widget.SimpleEditor.html#method__handleKeyUp", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleMouseDown", "url": "YAHOO.widget.SimpleEditor.html#method__handleMouseDown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "_handleMouseOut", "url": "YAHOO.widget.ToolbarButton.html#method__handleMouseOut", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "_handleMouseOver", "url": "YAHOO.widget.ToolbarButton.html#method__handleMouseOver", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleMouseUp", "url": "YAHOO.widget.SimpleEditor.html#method__handleMouseUp", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "_handleSelect", "url": "YAHOO.widget.ToolbarButton.html#method__handleSelect", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "handleSubmit", "url": "YAHOO.widget.SimpleEditor.html#config_handleSubmit", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "handleSubmitChange", "url": "YAHOO.widget.SimpleEditor.html#event_handleSubmitChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleToolbarClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleToolbarClick", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "_handleWindowInputs", "url": "YAHOO.widget.Editor.html#method__handleWindowInputs", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_hasParent", "url": "YAHOO.widget.SimpleEditor.html#method__hasParent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_hasSelection", "url": "YAHOO.widget.SimpleEditor.html#method__hasSelection", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_hasUndoLevel", "url": "YAHOO.widget.Editor.html#method__hasUndoLevel", "type": "method"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "header", "url": "YAHOO.widget.EditorWindow.html#property_header", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "height", "url": "YAHOO.widget.SimpleEditor.html#config_height", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "heightChange", "url": "YAHOO.widget.SimpleEditor.html#event_heightChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "hiddencss", "url": "YAHOO.widget.Editor.html#config_hiddencss", "type": "config"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "hiddencssChange", "url": "YAHOO.widget.Editor.html#event_hiddencssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "hide", "url": "YAHOO.widget.SimpleEditor.html#method_hide", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "html", "url": "YAHOO.widget.SimpleEditor.html#config_html", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "htmlChange", "url": "YAHOO.widget.SimpleEditor.html#event_htmlChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "iframe", "url": "YAHOO.widget.SimpleEditor.html#config_iframe", "type": "config"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "init", "url": "YAHOO.widget.Editor.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "init", "url": "YAHOO.widget.SimpleEditor.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "init", "url": "YAHOO.widget.ToolbarButton.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "init", "url": "YAHOO.widget.Toolbar.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "initAttributes", "url": "YAHOO.widget.Editor.html#method_initAttributes", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "initAttributes", "url": "YAHOO.widget.SimpleEditor.html#method_initAttributes", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "initAttributes", "url": "YAHOO.widget.ToolbarButton.html#method_initAttributes", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "initAttributes", "url": "YAHOO.widget.Toolbar.html#method_initAttributes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_initEditor", "url": "YAHOO.widget.SimpleEditor.html#method__initEditor", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_initEditorEvents", "url": "YAHOO.widget.SimpleEditor.html#method__initEditorEvents", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "insert", "url": "YAHOO.widget.SimpleEditor.html#config_insert", "type": "config"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "_instances", "url": "YAHOO.widget.EditorInfo.html#property__instances", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "invalidHTML", "url": "YAHOO.widget.SimpleEditor.html#property_invalidHTML", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_isElement", "url": "YAHOO.widget.SimpleEditor.html#method__isElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_isLocalFile", "url": "YAHOO.widget.SimpleEditor.html#method__isLocalFile", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_isNonEditable", "url": "YAHOO.widget.SimpleEditor.html#method__isNonEditable", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "isSelected", "url": "YAHOO.widget.Toolbar.html#method_isSelected", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_keyMap", "url": "YAHOO.widget.SimpleEditor.html#property__keyMap", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_keyNav", "url": "YAHOO.widget.Toolbar.html#property__keyNav", "type": "property"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "label", "url": "YAHOO.widget.ToolbarButton.html#config_label", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "labelChange", "url": "YAHOO.widget.ToolbarButton.html#event_labelChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastButton", "url": "YAHOO.widget.SimpleEditor.html#property__lastButton", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastCommand", "url": "YAHOO.widget.SimpleEditor.html#property__lastCommand", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastImage", "url": "YAHOO.widget.SimpleEditor.html#property__lastImage", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastNodeChange", "url": "YAHOO.widget.SimpleEditor.html#property__lastNodeChange", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastNodeChangeEvent", "url": "YAHOO.widget.SimpleEditor.html#property__lastNodeChangeEvent", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "limitCommands", "url": "YAHOO.widget.SimpleEditor.html#config_limitCommands", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_listFix", "url": "YAHOO.widget.SimpleEditor.html#method__listFix", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "localFileWarning", "url": "YAHOO.widget.Editor.html#config_localFileWarning", "type": "config"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "localFileWarningChange", "url": "YAHOO.widget.Editor.html#event_localFileWarningChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_makeColorButton", "url": "YAHOO.widget.Toolbar.html#method__makeColorButton", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_makeSpinButton", "url": "YAHOO.widget.Toolbar.html#method__makeSpinButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "markup", "url": "YAHOO.widget.SimpleEditor.html#config_markup", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "markupChange", "url": "YAHOO.widget.SimpleEditor.html#event_markupChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_mask", "url": "YAHOO.widget.SimpleEditor.html#property__mask", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "maxUndo", "url": "YAHOO.widget.SimpleEditor.html#config_maxUndo", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "menu", "url": "YAHOO.widget.ToolbarButton.html#config_menu", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "menuChange", "url": "YAHOO.widget.ToolbarButton.html#event_menuChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "moveWindow", "url": "YAHOO.widget.Editor.html#method_moveWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "moveWindow", "url": "YAHOO.widget.SimpleEditor.html#method_moveWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "name", "url": "YAHOO.widget.EditorWindow.html#property_name", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_navCounter", "url": "YAHOO.widget.Toolbar.html#property__navCounter", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_navigateButtons", "url": "YAHOO.widget.Toolbar.html#method__navigateButtons", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_nodeChange", "url": "YAHOO.widget.SimpleEditor.html#method__nodeChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "nodeChange", "url": "YAHOO.widget.SimpleEditor.html#method_nodeChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "nodeChangeDelay", "url": "YAHOO.widget.SimpleEditor.html#config_nodeChangeDelay", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_nodeChangeDelayTimer", "url": "YAHOO.widget.SimpleEditor.html#property__nodeChangeDelayTimer", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "nodeChangeThreshold", "url": "YAHOO.widget.SimpleEditor.html#config_nodeChangeThreshold", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_nodeChangeTimer", "url": "YAHOO.widget.SimpleEditor.html#property__nodeChangeTimer", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "openWindow", "url": "YAHOO.widget.Editor.html#method_openWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "openWindow", "url": "YAHOO.widget.SimpleEditor.html#method_openWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "operaEvent", "url": "YAHOO.widget.SimpleEditor.html#property_operaEvent", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "panel", "url": "YAHOO.widget.SimpleEditor.html#config_panel", "type": "config"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "panel", "url": "YAHOO.widget.EditorInfo.html#property_panel", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "plainText", "url": "YAHOO.widget.SimpleEditor.html#config_plainText", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "post_filter_linebreaks", "url": "YAHOO.widget.SimpleEditor.html#method_post_filter_linebreaks", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "pre_filter_linebreaks", "url": "YAHOO.widget.SimpleEditor.html#method_pre_filter_linebreaks", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "ptags", "url": "YAHOO.widget.SimpleEditor.html#config_ptags", "type": "config"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_putUndo", "url": "YAHOO.widget.Editor.html#method__putUndo", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_removeEditorEvents", "url": "YAHOO.widget.SimpleEditor.html#method__removeEditorEvents", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "removeLineBreaks", "url": "YAHOO.widget.SimpleEditor.html#config_removeLineBreaks", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "removeLineBreaksChange", "url": "YAHOO.widget.SimpleEditor.html#event_removeLineBreaksChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_render", "url": "YAHOO.widget.SimpleEditor.html#method__render", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "render", "url": "YAHOO.widget.SimpleEditor.html#method_render", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_renderCreateLinkWindow", "url": "YAHOO.widget.Editor.html#method__renderCreateLinkWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_rendered", "url": "YAHOO.widget.SimpleEditor.html#property__rendered", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_renderInsertImageWindow", "url": "YAHOO.widget.Editor.html#method__renderInsertImageWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_renderPanel", "url": "YAHOO.widget.Editor.html#method__renderPanel", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "resetAllButtons", "url": "YAHOO.widget.Toolbar.html#method_resetAllButtons", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_resetColorPicker", "url": "YAHOO.widget.Toolbar.html#method__resetColorPicker", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "resize", "url": "YAHOO.widget.SimpleEditor.html#property_resize", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "resize", "url": "YAHOO.widget.SimpleEditor.html#config_resize", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_resizeConfig", "url": "YAHOO.widget.SimpleEditor.html#property__resizeConfig", "type": "property"}, {"access": "", "host": "YAHOO.widget.EditorInfo", "name": "saveAll", "url": "YAHOO.widget.EditorInfo.html#method_saveAll", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "saveEl", "url": "YAHOO.widget.SimpleEditor.html#config_saveEl", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "saveHTML", "url": "YAHOO.widget.SimpleEditor.html#method_saveHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "selectButton", "url": "YAHOO.widget.Toolbar.html#method_selectButton", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_selection", "url": "YAHOO.widget.SimpleEditor.html#property__selection", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_selectNode", "url": "YAHOO.widget.SimpleEditor.html#method__selectNode", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_semantic", "url": "YAHOO.widget.SimpleEditor.html#property__semantic", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_sep", "url": "YAHOO.widget.Toolbar.html#property__sep", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_sepCount", "url": "YAHOO.widget.Toolbar.html#property__sepCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "SEP_DOMPATH", "url": "YAHOO.widget.SimpleEditor.html#property_SEP_DOMPATH", "type": "property"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "setBody", "url": "YAHOO.widget.EditorWindow.html#method_setBody", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setCurrentEvent", "url": "YAHOO.widget.SimpleEditor.html#method__setCurrentEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setDesignMode", "url": "YAHOO.widget.SimpleEditor.html#method__setDesignMode", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "setDesignMode", "url": "YAHOO.widget.SimpleEditor.html#config_setDesignMode", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "setEditorHTML", "url": "YAHOO.widget.SimpleEditor.html#method_setEditorHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_setEditorStyle", "url": "YAHOO.widget.SimpleEditor.html#method__setEditorStyle", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "setFooter", "url": "YAHOO.widget.EditorWindow.html#method_setFooter", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "setHeader", "url": "YAHOO.widget.EditorWindow.html#method_setHeader", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setInitialContent", "url": "YAHOO.widget.SimpleEditor.html#method__setInitialContent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setMarkupType", "url": "YAHOO.widget.SimpleEditor.html#method__setMarkupType", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setupAfterElement", "url": "YAHOO.widget.SimpleEditor.html#method__setupAfterElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setupDD", "url": "YAHOO.widget.SimpleEditor.html#method__setupDD", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setupResize", "url": "YAHOO.widget.SimpleEditor.html#method__setupResize", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "show", "url": "YAHOO.widget.SimpleEditor.html#method_show", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_showingHiddenElements", "url": "YAHOO.widget.SimpleEditor.html#property__showingHiddenElements", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "STOP_EXEC_COMMAND", "url": "YAHOO.widget.SimpleEditor.html#property_STOP_EXEC_COMMAND", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "STOP_NODE_CHANGE", "url": "YAHOO.widget.SimpleEditor.html#property_STOP_NODE_CHANGE", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_storeUndo", "url": "YAHOO.widget.Editor.html#method__storeUndo", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_BEFORE_EDITOR", "url": "YAHOO.widget.Editor.html#property_STR_BEFORE_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_BEFORE_EDITOR", "url": "YAHOO.widget.SimpleEditor.html#property_STR_BEFORE_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_CLOSE_WINDOW", "url": "YAHOO.widget.Editor.html#property_STR_CLOSE_WINDOW", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_CLOSE_WINDOW_NOTE", "url": "YAHOO.widget.Editor.html#property_STR_CLOSE_WINDOW_NOTE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_COLLAPSE", "url": "YAHOO.widget.Toolbar.html#property_STR_COLLAPSE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_EXPAND", "url": "YAHOO.widget.Toolbar.html#property_STR_EXPAND", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_BORDER", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_BORDER", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_BORDER_SIZE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_BORDER_SIZE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_BORDER_TYPE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_BORDER_TYPE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_COPY", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_COPY", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_IMAGE_HERE", "url": "YAHOO.widget.SimpleEditor.html#property_STR_IMAGE_HERE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_ORIG_SIZE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_ORIG_SIZE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_PADDING", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_PADDING", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_PROP_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_PROP_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_SIZE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_SIZE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_TEXTFLOW", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_TEXTFLOW", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_IMAGE_URL", "url": "YAHOO.widget.SimpleEditor.html#property_STR_IMAGE_URL", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_LEAVE_EDITOR", "url": "YAHOO.widget.SimpleEditor.html#property_STR_LEAVE_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_NEW_WINDOW", "url": "YAHOO.widget.Editor.html#property_STR_LINK_NEW_WINDOW", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_PROP_REMOVE", "url": "YAHOO.widget.Editor.html#property_STR_LINK_PROP_REMOVE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_PROP_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_LINK_PROP_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_LINK_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_LINK_URL", "url": "YAHOO.widget.SimpleEditor.html#property_STR_LINK_URL", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LOCAL_FILE_WARNING", "url": "YAHOO.widget.Editor.html#property_STR_LOCAL_FILE_WARNING", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_NONE", "url": "YAHOO.widget.Editor.html#property_STR_NONE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_SPIN_DOWN", "url": "YAHOO.widget.Toolbar.html#property_STR_SPIN_DOWN", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_SPIN_LABEL", "url": "YAHOO.widget.Toolbar.html#property_STR_SPIN_LABEL", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_SPIN_UP", "url": "YAHOO.widget.Toolbar.html#property_STR_SPIN_UP", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_TITLE", "url": "YAHOO.widget.SimpleEditor.html#property_STR_TITLE", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_swapEl", "url": "YAHOO.widget.SimpleEditor.html#method__swapEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_tag2cmd", "url": "YAHOO.widget.SimpleEditor.html#property__tag2cmd", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_textarea", "url": "YAHOO.widget.SimpleEditor.html#property__textarea", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "textarea", "url": "YAHOO.widget.SimpleEditor.html#config_textarea", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "title", "url": "YAHOO.widget.ToolbarButton.html#config_title", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "_titlebar", "url": "YAHOO.widget.Toolbar.html#property__titlebar", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "titlebar", "url": "YAHOO.widget.Toolbar.html#config_titlebar", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "titlebarChange", "url": "YAHOO.widget.Toolbar.html#event_titlebarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "titleChange", "url": "YAHOO.widget.ToolbarButton.html#event_titleChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_toggleDesignMode", "url": "YAHOO.widget.SimpleEditor.html#method__toggleDesignMode", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbar", "url": "YAHOO.widget.SimpleEditor.html#property_toolbar", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbar", "url": "YAHOO.widget.SimpleEditor.html#config_toolbar", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbarChange", "url": "YAHOO.widget.SimpleEditor.html#event_toolbarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "toolbarCollapsed", "url": "YAHOO.widget.Toolbar.html#event_toolbarCollapsed", "type": "event"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_toolbarConfigs", "url": "YAHOO.widget.Toolbar.html#property__toolbarConfigs", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbar_cont", "url": "YAHOO.widget.SimpleEditor.html#config_toolbar_cont", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "toolbarExpanded", "url": "YAHOO.widget.Toolbar.html#event_toolbarExpanded", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbarLoaded", "url": "YAHOO.widget.SimpleEditor.html#event_toolbarLoaded", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "toString", "url": "YAHOO.widget.Editor.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "toString", "url": "YAHOO.widget.EditorWindow.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toString", "url": "YAHOO.widget.SimpleEditor.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorInfo", "name": "toString", "url": "YAHOO.widget.EditorInfo.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "toString", "url": "YAHOO.widget.ToolbarButton.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "toString", "url": "YAHOO.widget.Toolbar.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "type", "url": "YAHOO.widget.ToolbarButton.html#config_type", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "typeChange", "url": "YAHOO.widget.ToolbarButton.html#event_typeChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_undoCache", "url": "YAHOO.widget.Editor.html#property__undoCache", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_undoLevel", "url": "YAHOO.widget.Editor.html#property__undoLevel", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_undoNodeChange", "url": "YAHOO.widget.Editor.html#method__undoNodeChange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_updateMenuChecked", "url": "YAHOO.widget.SimpleEditor.html#method__updateMenuChecked", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "value", "url": "YAHOO.widget.ToolbarButton.html#config_value", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "valueChange", "url": "YAHOO.widget.ToolbarButton.html#event_valueChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "valueClick", "url": "YAHOO.widget.Toolbar.html#event_valueClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "width", "url": "YAHOO.widget.SimpleEditor.html#config_width", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "widthChange", "url": "YAHOO.widget.SimpleEditor.html#event_widthChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "window", "url": "YAHOO.widget.EditorInfo.html#property_window", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowCMDClose", "url": "YAHOO.widget.Editor.html#event_windowCMDClose", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowCMDOpen", "url": "YAHOO.widget.Editor.html#event_windowCMDOpen", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowCreateLinkRender", "url": "YAHOO.widget.Editor.html#event_windowCreateLinkRender", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowInsertImageRender", "url": "YAHOO.widget.Editor.html#event_windowInsertImageRender", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowRender", "url": "YAHOO.widget.Editor.html#event_windowRender", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_windows", "url": "YAHOO.widget.Editor.html#method__windows", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_writeDomPath", "url": "YAHOO.widget.SimpleEditor.html#method__writeDomPath", "type": "method"}];
</script>
</body>
</html>
